A suicide bomber set off an explosion at a shop selling tea in Somalia's capital on Friday, killing at least seven people, according to a witness and medical personnel.
Police put the number of dead at five. Al Qaeda-linked al Shabaab group claimed responsibility for the attack in a statement on Friday.
It put the number of dead at 11 and wounded at 18 - its numbers on casualties in attacks often differ from government figures.
The Friday afternoon blast occurred at a checkpoint on a road leading to the parliament and the president's office and the shop is frequented by soldiers, the witness said.
The witness and medical personnel who were at the scene put the number of dead at seven and the wounded at up to eight.
Al-Shabaab bomber
Sadik Ali, the police spokesperson, said the blast killed five people and wounded six others, adding the bomber was a member of al Qaeda-linked al Shabaab.
"He killed five people ... who were all drinking tea. The suicide bomber was one of the Kharijite terrorists," Ali said in a statement, using the term the government uses to refer to al Qaeda-linked al Shabaab group.
"I have counted and helped transport seven dead people and six others wounded, most of them soldiers," Ahmed Ali, a witness at the scene of the explosion, told Reuters.
In June, al Shabaab, which aims to topple the central government and impose its own strict interpretation of Islamic law, killed 54 Ugandan soldiers at their base southwest of Mogadishu.