A bomb blast at a restaurant in the southern Somali town of Baidoa killed six people, officials told the BBC.
There was also a suicide bomb attack near the capital’s port, Mogadishu, which wounded at least seven.
The militant al-Shabab group said it was behind both incidents.
The UN-backed government has been fighting al-Shabab for control of the country for more than a decade.
- Who are the Somali al-Shabab?
The militants, who are allied with 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 were killed in the attack, but authorities said all the victims were civilians.
Police told the BBC that in Mogadishu, officers opened fire on a vehicle after it did not stop at a checkpoint.
The suicide bomber driving the car is said to have attempted to hit a police post in front of the port, but was shot at by security forces and the vehicle exploded.
Two policemen and five passers-by were injured.
“The metal debris fell on us inside the port and we heard gunshots,” a port worker told Reuters.