CAIRO — Heavy clashes between Libyan soldiers loyal to a renegade general and Islamist-led militias killed 38 people, health officials said Sunday, as fighting between rival militias around the capital’s international airport raged on and European nations warned their citizens to leave.
Forces loyal to General Khalifa Hifter battled militias in the eastern city of Benghazi in clashes that started Saturday and continued through early Sunday morning, a security official said.
Commando forces regained control of four military camps captured by Islamist militias in the past few days, the official said.
The fighting killed eight militia fighters, including the brother of an alleged leader of an Al Qaeda-inspired group, the official said.
A statement published on the website of the powerful Islamist militia Rafallah Sahati confirmed the death of Ahmed al-Zahawi, brother of Mohammed, the leader of Ansar al-Shariah.
US officials believe Ansar al-Shariah was behind the Sept. 11, 2012, attack in Benghazi that killed US Ambassador Chris Stevens and three other Americans.
Rockets fired during this weekend’s fighting hit civilian homes, wounding dozens of people, health officials said.
All officials spoke on condition of anonymity because they were not authorized to brief reporters.
More than two months ago, when Hifter started his offensive to crush Islamist militias and their political backers, Mohammed al-Zahawi vowed to continue fighting, calling Hifter an ‘‘American agent.’’
Hifter once served as dictator Moammar Khadafy’s top military official but later defected and spent years in the United States, though American officials say they have not been in recent contact with him.
The fighting in Benghazi came as fierce clashes resumed between rival Libyan militias for control of Tripoli’s international airport.
The battle began two weeks ago when Islamist-led militias — mostly from the western city of Misrata — launched a surprise assault on the airport, under control of rival militias from the western mountain town of Zintan.
The fighting has killed dozens of people and forced residents to flee.
Associated Press video of clashes Saturday showed a jet airplane burning and heavy smoke rising over it, as militiamen fired rockets and heavy machine guns.
Shells struck the airport Sunday, while a main market and shopping center near the airport caught on fire.
A statement Sunday by the Libyan Health Ministry said that the ongoing battle for the airport has killed 79 people and wounded more than 400. On Saturday, 23 people, including Egyptian nationals, were killed when a rocket struck their house in Tripoli, the Egyptian Foreign Ministry said.
More than three years after Khadafy’s downfall, Libya is witnessing one of the worst bouts of violence amid growing lawlessness in the country.
On Saturday, the United States evacuated its diplomats in Tripoli to neighboring Tunisia and shut its embassy.
The UN Support Mission in Libya and the International Committee of the Red Cross have withdrawn their staff as well.
Also on Sunday, gunmen attacked a British Embassy convoy in Tripoli, firing on a car but wounding no one, Ambassador Michael Aron said on Twitter.
A Libyan official said investigators believed the attackers wanted to steal the car.
The UK Foreign Office advised its citizens Sunday to leave the country immediately because of the ‘‘greater intensity of fighting’’ in Tripoli and the likelihood of further attacks on foreigners.
Germany, France, and Spain also issued warnings for their citizens to leave.
Egypt has warned its citizens living in Tripoli and Benghazi to leave the cities.