What you need to know:
- The attack came exactly one year after former rebels declared the liberation of Bani Walid
- Rebels defeated Bani Walid fighters loyal to the former regime on October 17, 2011
At least eleven Libyans were killed and scores wounded in clashes on Wednesday when ex-rebels linked to the army attacked Bani Walid, a former bastion of dictator Moamer Kadhafi, local sources said. Read (Libya's Misrata tense after death of man who caught Gaddafi)
"Clashes today left four dead and 19 wounded in the ranks of Libya Shield," said a commander of the brigade which operates under the banner of the army.
The deputy director of Bani Walid's hospital, Abdullah al-Mansuri, told AFP that his facility had received another "seven dead people and 75 wounded, including a 14-year-old girl."
"Bani Walid was shelled from three fronts today," said Massud al-Waer, a local official in Bani Walid. Dozens of residents were wounded in the assault, he told AFP.
The attack came exactly one year after former rebels declared the liberation of Bani Walid, which remained loyal to the long-time leader throughout the 2011 conflict that led to his ouster and death.
Rebels defeated Bani Walid fighters loyal to the former regime on October 17, 2011 -- just three days before Kadhafi was captured and killed in his hometown of Sirte.
But many Libyans feel Bani Walid, 170 kilometres (110 miles) southeast of Tripoli, was never truly "liberated" and see it as a shelter for regime loyalists and criminal gangs.
The hilltop town came back into focus last month after the death of a former rebel from the city of Misrata who was credited with capturing Kadhafi and was later kidnapped, allegedly tortured and shot in Bani Walid.
The death of former rebel Omar ben Shaaban, 22, stoked tensions between Misrata and Bani Walid, neighbouring but historically rival cities which found themselves on opposite sides of the 2011 conflict.
The General National Congress (GNC), the highest political authority, ordered the defence and interior ministries on September 25 to find those who held him hostage for weeks in Bani Walid and authorised the "use of force if necessary."
Acting on the national assembly's order, army troops and brigades made up of ex-rebels encircled Bani Walid in early October and threatened to "purge" former regime remnants.
On Wednesday, Shield Libya officers and fighters from the city of Misrata said that they had received orders to advance into Bani Walid but the army's spokesman, Colonel Ali al-Sheikhi, swiftly denied this.
"We gave no order to attack," Sheikhi told AFP, adding that the authorities wanted to give a chance for negotiations to succeed.
Later, the chief of staff said in a statement carried by the official news agency LANA that the army was in fact "ready to enter Bani Walid."
The statement called on "all parties to exercise self-restraint" so that "units of the regular army can impose the authority of the state."
Last week, tribal chiefs interviewed by AFP in Bani Walid said that they would refuse the entry of "lawless militias" into the town and stressed that there was no such thing as an army in Libya.
The new authorities, under pressure to rebuild the army and police force, have had a hard time controlling dozens of militias made up of former rebels.