A bomb explosion at a restaurant in the southern Somali town of Baidoa has killed six people, officials have told the BBC.
There has also been a suicide bomb attack close to the port of the capital, Mogadishu, which injured at least seven.
Militant group al-Shabab said it was behind both incidents.
The UN-backed government has been battling against al-Shabab for control of the country for more than a decade.
The militants, who are allied to al-Qaeda, said that in Baidoa they were targeting tax collectors, who were holding a meeting at the restaurant, and soldiers.
They added that two soldiers died in the attack but officials said the victims were all civilians.