Local officials said 40 of the dead after the clashes in the Abyan province city of Loder were militants, revising an earlier toll supplied by a military official of 24 militants killed.
A military source said the army lost 14 men, including an officer, while six other people were also killed in the violence.
The barracks in Loder came under fire from the Islamists before daylight and the soldiers fought back, military sources said.
A government official in Loder told AFP that the army later withdrew from the barracks where the town`s tribesmen, who have been fighting alongside the soldiers, were left to battle the militants.
"The army is backing us with weapons," a tribal chief said. "We will fight Al-Qaeda and will not let them into our city."
Monday`s attack came after air strikes killed 24 suspected Al-Qaeda militants in their strongholds of southern and eastern Yemen at the weekend, according to the defence ministry and a tribal chief.
The city of Loder is located some 150 kilometres (95 miles) northeast of Zinjibar, the Abyan provincial capital which the Partisans of Sharia (Islamic law) overran in May last year.
A tribal source said the militants have been hiding out in rugged mountainous regions east and north of Loder.
The Partisans of Sharia is linked to Al-Qaeda in the Arabian Peninsula, or AQAP, which the United States considers to be the most active branch of the global terror network.
AQAP has exploited a decline in central government control that accompanied Arab Spring-inspired protests that eventually forced Yemen`s veteran president Ali Abdullah Saleh to cede power in the face of a popular uprising. (*)
Editor: Kunto Wibisono
Copyright © ANTARA 2012