Officials say 12 of the attackers were also killed in the overnight incident.
In a separate incident, four Afghan aid workers were killed by a roadside blast west of Kabul, police said.
The attacks come after several days of some of the heaviest Taliban attacks since the Islamic militia was ousted in 2001, and just as NATO is bringing thousands of extra troops into the country.
RFE/RL Afghanistan Report
SUBSCRIBE For regular news and analysis on Afghanistan by e-mail, subscribe to "RFE/RL Afghanistan Report."