The ministry said operations against the attackers, who took up position in a part of the complex used for accommodation, had proceeded slowly to limit the number of civilian casualties.
In all, 38 civilians, 10 soldiers and two police officers were killed in the fighting, while 37 security forces and civilians were wounded.
No casualties were reported among the thousands of international military and contractors based at the heavily fortified site.
More about: