Bomb attacks killed at least 21 people and wounded dozens more on Wednesday in mostly Shiite Muslim neighbourhoods of the Iraqi capital, a police colonel said.