General Khalifa Haftar attends a news conference at a sports club in Abyar, a small town to the east of Benghazi. Picture: Esam Omran Al-Fetori

Cairo -

A Libyan militia spokesman says rockets targeting positions of an Islamist-led militia in the capital, Tripoli, have killed six people.

The attack is part of weeks-long fighting between rival militias in Tripoli, which has forced thousands to flee the country, including diplomats, foreign nationals and Libyans.

Ahmed Hadiya, the spokesman for Fajr Libya militia, says the rockets were launched late on Sunday from the Wittiya air base west of Tripoli. He did not provide more details.

A militiaman from the coastal city of Misrata says two warplanes belonging to renegade General Khalifa Hifter's followers took part in the attack. The militiaman spoke on condition of anonymity because he is not authorised to talk to media.

Egypt on Monday cancelled all flights to Libya, saying Libyan authorities had closed the country's airspace. - Sapa-AP