Afghan soldiers scoured a former NATO military base in the south of the country on Monday, searching for any remaining insurgents after four days of fighting inside the perimeter fence.
The Taliban launched a multiple suicide and gunfire attack on Thursday evening on Camp Bastion, now known as Shorabak, a major airfield that was handed over to Afghan control from foreign forces only a month ago.
Some attackers got into empty barracks inside the camp, and Afghan forces feared a rogue militant could still be holed up in a basement, said Omar Zwak, the governor's spokesman for Helmand province.
Zwak said five soldiers and at least 26 insurgents had died in the fighting.
"Clearance operations are being completed," he said.
A statement from the defence ministry on Sunday said: "A group of enemies attacked a part of Camp Bastion.
"At first six suicide bombers detonated and then the enemy using small and heavy weapons attacked the base."
Separately, 12 Afghan soldiers were killed in the same province on Saturday, Zwak said.
In that attack, insurgents attacked a small outpost in Sangin district, one of the most fiercely contested areas of Afghanistan over recent years and the scene of many US and British casualties.
Almost all NATO troops have now pulled out of Helmand, as NATO's combat mission prepares to wrap up at the end of this month.
Short link: