Al-Arabiyya speculated based on earlier reports that they may have been abducted by pirates and then given to al-Shabaab.
As climate change fuels the movement of migrants throughout the world, the subject becomes a center point at the COP27 conference in Sharm El Sheikh, Egypt.
The first of the explosions hit the education ministry near a busy junction in Mogadishu. The second occurred as ambulances arrived and people gathered to help the victims.
Somali security forces have touted gains made in recent weeks against the al Qaeda-linked group while fighting alongside local self-defense groups.
A weekly selection of opinions and analyses from the Arab media around the world.
The gunmen were holding an unknown number of hostages on the second floor of the building, Mohammed, an intelligence officer, said, preventing authorities from using heavy weapons.
Faced with criticism over massive corruption, restrictions on the media, and abuses of power in his first term, which ended in 2017, Mohamud has adopted a conciliatory tone.
Prior to Trump's withdrawal, the United States had about 700 troops in Somalia focused on helping local forces defeat the al Qaeda-linked al Shabaab insurgency.
Iranian Mohammed Saeid Golabi was arrested in Kenya for coordinating a terror cell in Nairobi attacking both Israeli and local sites.
Al Shabaab, which wants to overthrow the government and impose its own strict interpretation of Islamic law, confirmed it was behind the attack.