Somali car bomb detonated during police check

A burning car, after an explosion, in Mogadishu Somalia, Saturday, Oct. 1, 2016. A Somali police officer says a car bomb struck the entrance of a restaurant in the Somali capital Saturday, killing two people. Capt. Mohamed Hussein said that the blast occurred as Blue Sky restaurant which is close to the presidential palace was packed with diners. (AP Photo/Farah Abdi Warsameh)

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.