Daesh militants in Sirte.
Tripoli - 12 people beheaded were local gunmen who had been battling Daesh while 22 other residents, who were wounded in the fight, were executed in a hospital, which was burnt by the militants.
Daesh group militants have beheaded 12 people and hung them on crosses during a battle for the coastal city of Sirte, the national news agency LANA reported on Saturday.
The fighting for control of Sirte, hometown of slain dictator Muammer Gaddafi, has been raging since Tuesday, with one top Libyan diplomat warning of a "massacre" in the city.
LANA said the 12 people beheaded were local gunmen who had been battling Daesh in the eastern Sirte district known as "neighbourhood three".
The agency also reported that Daesh militants executed 22 other Sirte residents who had taken up arms against the group as they lay wounded in a city hospital.
It said the militants also set the hospital on fire.
A Sirte city council official said that clashes continued to rage on Saturday.
"There is continuous fighting, especially in neighbourhood three, and the casualty toll is rising," said the unnamed official.
Libya's ambassador to France, Chibani Abuhamoud, said on Friday that fighting in Sirte had left between 150 and 200 dead.
"A real massacre is taking place, and we call on the international community to intervene," the diplomat said.
The ambassador answers to Libya's internationally recognised government, which has taken refuge in the east of the country and is in a power struggle with a rival administration based in Tripoli.
Authorities in Tripoli, which was seized last year by a militia alliance known as Fajr Libya, announced on Tuesday the launch of an operation to liberate Sirte, 450 kilometres east of Tripoli.
Media loyal to the Tripoli authorities said warplanes were bombing armed groups linked to Daesh in Sirte.
The Libyan ambassador said the fighting erupted after Daesh assassinated earlier this week an influential imam from the powerful Al Farjan tribe.
The militants have since been "massacring people, even killing people in their homes," Abuhamoud charged.
Late on Friday, the Dar Al Iftaa Muslim organisation that issues religious decrees issued a statement calling on Libyans to mobilise against Daesh.
"All Libyans able to carry weapons must mobilise to confront this cancer which is trying to destroy our Muslim nation," said the statement.
Libya has descended into chaos since the fall of Gaddafi in 2011.
It has two parliaments and two governments vying for power and a slew of armed groups and tribes fighting for its oil wealth and cities.
Daesh, which already controls large swathes of territory in Iraq and Syria, has exploited the chaos in Libya, notably taking control in June of Sirte.