Al Qaeda-affiliated al Shabaab militants, fighting Somalia’s Western-backed government, pulled out of most of their permanent bases in Mogadishu in August, and vowed to switch to guerilla tactics and target government installations.
Police and residents blamed al Shabaab fighters for the latest wave of blasts in the capital.
Analysts say local clan leaders and warlords have also moved in to take advantage of a security vacuum in Mogadishu, which government troops and African Union peacekeepers have failed to fill.
On Monday a roadside bomb killed two Somali soldiers and wounded three after it exploded near their car in northern Mogadishu, police officer Mohamed Abdullahi Omar told Reuters.
Another three soldiers were killed when they tried to disable roadside bombs in northern Mogadishu, police said, adding that two other bombs were found and disabled.
On Tuesday a bomb planted near a mosque in Bakara market killed two children, resident Mohamed Yusuf said.
“We have foiled and seized many others (roadside bombs) in the last few days,” Somali police officer Adam Mohamed Ali told Reuters.