Gunmen have killed at least 14 soldiers guarding a power plant in the Libyan city of Sirte.

The official Libyan news agency says the military chief of the self-proclaimed government in the capital Tripoli has ordered an investigation into the killings in Sirte, which is controlled by Islamist militias allied with the Tripoli government.

It is not clear who carried out the attack.

Nouri Abu-Sahmein, the military chief appointed by the Tripoli government, said in a statement the military prosecutor would lead the investigation.

Battles among rival militias in Libya have left hundreds of people dead and thousands displaced in recent weeks. Anti-Islamist militias back the internationally recognised government, which is based in the country's far east.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.