The Somali government says soldiers managed to prevent a car bomb from killing many people in central Mogadishu after they stopped a suspicious vehicle on the outskirts of the capital.
As the car was checked, the driver detonated the bomb.
It killed one soldier and injured several civilians.
The Islamist extremist group al-Shabab says it carried out the attack.
Last week, more than 30 people died when the al-Shabab group detonated two car bombs close to the presidential palace.