Migrants are seen in a shelter after they were relocated from government-run detention centers, after getting trapped by clashes between rival groups in Tripoli, Libya August 30, 2018. REUTERS/Hani Amara

PARIS (Reuters) - The United States, France, Italy and Britain on Saturday condemned what they called an escalation of violence in and around the Libyan capital Tripoli, warning that armed groups which undermined Libyan stability would be made accountable.

“These attempts to weaken the legitimate Libyan authorities and hinder the ongoing political process are not acceptable,” Washington, Paris, Rome and London said in a joint statement published by the French foreign ministry.

“We are calling on the armed groups to immediately stop all military action and warn those who seek to undermine stability, in Tripoli or elsewhere in Libya, that they will be made accountable for it,” the statement said.

Libyan authorities closed Tripoli airport on Friday after some rockets were fired in its direction, a spokesman for the state airline Libyan Airlines said.