At least 10 people have died and 19 were injured after a compound for British security firm G4S was attacked, authorities said.
Gunmen stormed the compound after a car bomb was detonated outside, according to an Afghan interior ministry spokesman.
A security source has told the BBC that foreigners were among the casualties.
There was reportedly a heavy exchange of gunfire. The Taliban have claimed responsibility for the attack.
While the interior ministry confirmed the death toll, it also warned the number could well rise.