At least 42 were also injured and there are fears the casualties could rise.
The blast in a mainly Shia district in the west of the city struck a bus carrying government employees from the ministry of mines.
The Taliban have said they carried out the attack.