Two soldiers from a brigade commanded by the Libyan National Army were killed and three wounded Wednesday in an attack claimed by ISIS.
The terrorist group claimed responsibility for the attack soon after via its propaganda agency Amaq.
It was the first attack following the announcement of LNA commander Khalifa Haftar that the military institution “was in control of most of Libyan territories.”
One of the dead soldiers was burned while the other was beheaded, a military source said.
Spokesman for the LNA General Ahmad al-Mesmari said that authorities launched an investigation into the attack and were bidding to track down the perpetrators.
Despite the loss of its coastal stronghold of Sirte in December 2016, ISIS remains active in Libya.
The last attack the group claimed was on October 4, when a suicide bomber killed four people at a judicial complex in the western city of Misrata.
There has been chaos in Libya since the downfall of Muammar Gaddafi.
The country has two rival governments: the United Nations-backed Government of National Accord in Tripoli and a rival administration backed by Haftar's forces in the country’s east.
Meanwhile, Ghassan Salame, the UN's envoy for Libya, met on Thursday with 30 lawmakers and representatives of the South at the mission’s headquarters in Tripoli.
The mission said in several Tweets that Salame briefed the officials in three separate meetings on the UN’s efforts to resolve the country’s crisis, and the results of the Joint Drafting Committee’s last round of discussions.
"I will mobilize all UNSMIL's capabilities to better serve the people of the South," it quoted Salame as saying.
“I do not promise you what I can't implement, but I promise you to do everything I can implement,” he added.
UNSMIL is the United Nations Support Mission in Libya.