At least 16 people were killed and 20 others wounded when a female suicide bomber blew herself up at a restaurant in Beledwayne, the regional capital of Hiiraan province, police told Deutsche Presse-Agentur (dpa) Saturday.
The female bomber entered the restaurant, normally frequented by residents and government soldiers, at lunchtime.
"We have collected bodies of 12 dead people, including the bomber herself," senior regional police officer Hassan Dhi'isow said. he confirmed that the attack was carried out by a female bomber.
At least 20 others were wounded in Saturday's bombing, claimed by al-Shabab terrorist group on its radio station Andalus.
The group said it was targeting government officials and soldiers.
The political situation in the city is tense as the process of choosing some lawmakers for the national parliament is about to start in the next few days.
Among the politicians running for the seats from the region is the National Security Adviser Fahad Yasiin, a former intelligence chief and most influential figure in the last five years of the current administration
Hundreds of national armed forces have been deployed in the city to prevent such attacks from happening during that elections.
The country in the Horn of Africa with around 16 million population has been rocked by attacks by al-Shabab for years. Al-Shabab controls large parts of the south and central regions. It repeatedly carries out attacks on security forces and civilians.