Manu Brabo, File, Associated Press
FILE - This Oct. 22, 2011 file photo, shows a general view of buildings ravaged by fighting in Sirte, Libya. A spokesman for militias loyal to Libya's U.N.-brokered government said on Sunday, June 12, 2016 that Islamic State militants have barricaded themselves in the center of their stronghold in the coastal city of Sirte, hoping to draw their attackers into a protracted street battle. Brig-Gen. Mohammed al-Ghasri said the militants have barricaded themselves in a densely built-up area and their snipers taken positions on rooftops waiting for the militias to advance.

BENGHAZI, Libya — Militants from the Islamic State group have barricaded themselves in the center of their stronghold in Libya's coastal city of Sirte, hoping to draw militias fighting to dislodge them into a protracted street battle, a spokesman for the fighters loyal to the U.N.-backed government said on Sunday.

Brig-Gen. Mohammed al-Ghasri said the militants have fallen back to a densely built-up area, with their snipers taking positions on rooftops waiting for the militiamen to advance. He said IS suicide bombers were likely to target the militias if they close in on the area. The militias have been shelling the area with artillery, hoping that would disrupt the IS's defenses before their eventual advance.

IS took over Sirte last year, exploiting Libya's turmoil to gain a foothold in the North African, oil-rich country. The fight to retake it is led by militias from the western city of Misrata.

Some militants from Sirte have reportedly shaven off their beards to escape Sirte when the Misrata militiamen began advancing on the city in tanks and pickup trucks mounted with machine guns.

At the city's main roundabout, the militiamen last week dismantled the metal frame of what some Sirte residents had dubbed the "stage of horror" — a podium used by IS for public beheadings during its yearlong reign over the city.

Driving IS out of Sirte would mean the dismantling of the extremist group's strongest bastion outside Iraq and Syria, where the IS controls vast swaths of territory and a string of cities. An overall triumph over IS in Libya would rid Egypt of a serious security threat just beyond its porous western border and terminate what has been a key supply route for men and weapons headed to the group's affiliate in the Sinai Peninsula. The IS presence in Libya has also been a source of concern to southern European nations, particularly Italy, Libya's former colonizer.