In the second, a massive auto bomb explosion killed at least 10 people and wounded 15 on a busy Mogadishu street.
No group has claimed responsibility, although al-Shabaab militants have been linked to similar attacks in the past.
The U.S. military earlier Friday confirmed that al-Shabab commander Ali Mohamed Hussein had been killed in an airstrike last weekend in southern Somalia. Most of Mogadishu's major roads were blocked and cars were being searched by soldiers before the blast.
"The U.S. conducted this operation in coordination with its regional partners as a direct response to al-Shabab actions, including recent attacks on Somali forces", the statement read.
He used the Lower Shabelle Region of Somalia, a known Al-Shabaab safe haven, as a hub for these activities.More news: Sterling Shepard Injury Reportedly Not Expected to Be Serious
"We don't know the target yet", Bulle said adding the victims were all civilians and were rushed to hospitals for treatment.
The Department of Defense says it killed a terrorist leader associated with al-Qaeda in Somalia.
The Al-Shabaab also conducted numerous attacks against the Somali National Army (SNA) and African Union Mission in Somalia members in the region.
The killing of Ali "disrupts Al Shabab's ability to plan and conduct attacks in Mogadishu and coordinate efforts between Al Shabab regional commanders, " the U.S. statement said. The US military in early July said it carried out an airstrike against Al Shabab in Somalia and was assessing the results, with few details. The terror group was pushed out of the capital city of Mogadishu in 2011, and lost control of Somalia's most populated areas.