Tripoli: A pre-dawn suicide attack in northwest Libya on Sunday claimed by Daesh killed five members of the Fajr Libya militia alliance that controls the capital, the militia said.

“A car suicide bomber blew himself up near a checkpoint at an entrance of Dafniya,” between the town of Zliten and Libya’s third city Misrata, said a spokesperson for Fajr Libya.

The attack, which occurred at 3am (0500 GMT), killed five members of the militia — also known as Libya Dawn — and wounded seven others, he added.

The Lana news agency of the militia-backed Tripoli administration gave a similar account of the attack, and also reported that five were dead.

The Daesh militant group claimed responsibility for the attack in a tweet, identifying the suicide bomber as a Tunisian named Abu Wahib Al Tunsi.

Daesh also used a Twitter account to warn Fajr Libya it was going to war with it “in order to cleanse the land of their filth”.

Libya plunged into chaos after the 2011 Nato-backed uprising that toppled and killed long-time dictator Muammar Gaddafi, with battle-hardened former rebels armed with heavy weapons carving out their own fiefdoms.

Fajr Libya, a coalition of militias, including Islamists, seized power in Tripoli last year.

It installed a new government and parliament in the capital, prompting the administration recognised by the international community to flee to the east of the country.

Sunday’s attack comes three days after Daesh seized control of the airport in Sirte, a city east of Tripoli that has been the scene of months of sporadic fighting between extremist factions and Fajr Libya.

The United Nations has for months struggled to broker a deal between warring parties through the creation of a national unity government.

On Saturday night a UN-sponsored meeting of Libyan mayors and municipal representatives in neighbouring Tunisia ended with a declaration calling for the “swift formation of a government of national accord”.