Two guards loyal to Khalifa Haftar's self-styled Libyan National Army were killed in an attack Saturday claimed by the Islamic State group, an LNA source said.
Four guards were also kidnapped in the attack on a checkpoint in the central region of Zella, the same source said.
IS said in a brief statement that it had targeted "Haftar's militias".
The media arm of Haftar's LNA said in a statement a "terrorist attack" had been repelled, but did not give any details.
The raid in Zella, close to an oilfield some 800 kilometres (500 miles) southeast of the capital Tripoli, is the third IS attack targeting Haftar's forces in recent weeks.
At least nine people were killed in a May 4 attack in the southern city of Sebha, then five days later gunmen killed two civilians in Ghodwa in southern Libya.
The LNA launched an operation in January to purge southern Libya "of terrorist groups and criminals".
After securing support from local tribes, it seized several towns.
Haftar then launched an offensive on April 4 against Tripoli, the seat of the internationally recognised Government of National Accord (GNA).
The LNA made initial gains but pro-GNA forces launched a counter-offensive, resulting in a stalemate on the southern outskirts of the city.
The fighting around Tripoli between Libya's two main factions has created fears that IS could re-emerge in the country.
The jihadists were pushed out of their stronghold Sirte by forces loyal to the GNA in December 2016.
But despite losing its main territory, east of Tripoli, IS has repeatedly shown itself capable of launching deadly attacks.
Libya has been mired in chaos since the NATO-backed uprising that deposed and killed dictator Moamer Kadhafi in 2011.
(This story has not been edited by Business Standard staff and is auto-generated from a syndicated feed.)