Two police officers were killed in a car bomb near a checkpoint in the city of Sebha in southern Libya late Sunday, a security source said.
"A car bomb exploded as it was crossing a roadblock set up by the security forces," a police official in the city said.
Sebha is located around 750 kilometers (465 miles) south of the capital, Tripoli.
"Two security officers were killed, five others were wounded and heavy material damage" was caused, the source said.
Local media showed images of badly damaged security force vehicles surrounded by debris.
Daesh terrorists claimed responsibility for the blast, the terrorist group's Nasheer news agency posted on Telegram.
The group said one of its militants, Muhammed El Muhajer, stormed a checkpoint on Sunday with an explosives-laden car.
Libyan interim Prime Minister Abdul Hamid Dbeibah wrote on Twitter that it had been a "cowardly terrorist act," offering condolences to the families of the two "martyrs" killed.
"Our war against terrorism continues," Dbeibah added.
Sebha, the capital of the southern province of Fezzan, is controlled by forces loyal to putschist Gen. Khalifa Haftar and has been the scene of several terrorist attacks in recent years.
Libya is seeking to extricate itself from a decade of chaos and conflict that followed the toppling of dictator Moammar Gadhafi in a 2011 NATO-backed uprising.
Selected through a United Nations-led process, Libya’s new unity government, the Government of National Unity (GNU), was sworn in on March 15. It is derived from two rival political groups that had ruled the country's eastern and western regions, completing a smooth transition of power after a decade of violent chaos.
Dbeibah will lead Libya to the Dec. 24 elections.
Despite the cease-fire and progress on the political front, the security situation remains precarious.