Now the Trump administration is thinking of withdrawing the several hundred US military troops from the Horn of Africa nation at what some experts call the worst possible time.
Last week, External Affairs Minister S Jaishankar had said India is working on relief and return of 33 Indians stuck in Somalia.
The bomber detonated his explosives belt near the gate of the mosque as worshippers were leaving after prayers.
Witnesses said the attack began with a heavy explosion and people ran from the area as gunfire could be heard from the hotel, which is frequented by government officials.
There was no immediate claim of responsibility, but the al-Qaida-linked al-Shabab group has targeted the city in the past.
In the week ending June 20, just over half — 51% — of the 3,471 people tracked said they had never heard of COVID-19.
Somalia-based al-Shabab extremist group, which has links to al-Qaeda, claimed responsibility for the attack, which was a first at a Turkish base in Mogadishu.