A suicide car bombing killed at least six people, including two children, outside a district headquarters in central Mogadishu on Sunday.
Authorities said the attacker detonated his explosive-laden vehicle after security forces stopped him at a checkpoint at the gate of the Hawlwadag local government office.
A spokesman for the mayor's office said the three soldiers who stopped the car died instantly, along with three civilians.
Fourteen people, including the deputy district commissioner, were critically injured.
Many of the victims were students at a nearby Islamic school that collapsed in the blast. A mosque and the local government headquarters were also brought down. Officials warned the death toll could rise.