Interior Ministry spokesman Zemeri Bashary says 21 of those killed were Afghan security forces, including many waiting to collect their pay at the local branch of Kabul Bank where the attack happened.
He says a total of 71 people, mostly civilians, were wounded in the raid.
Bashary says the attack was carried out by a team of five armed suicide bombers. Four were killed when their explosives vests detonated during gunbattles with police. The fifth was arrested.