Salem Jathran, the mayor of Ajdabia, says the extremists attacked Friday near his city on the road leading to Tobruk.
Libya has slid into chaos since the 2011 overthrow and killing of longtime dictator Moammar Gadhafi, who ruled the country for four decades. It is now bitterly divided between an elected parliament and government in the far eastern city of Tobruk, which has little power on the ground, and an Islamist militia-backed government in the west that has seized Tripoli.