A car bomb exploded at the gate of Afrik hotel and was followed by gunfire heard inside, Somali police captain, Ahmed Hassan, told CNN. The incident occurred around 5 p.m. local time (9 a.m. ET), Hassan added.
Gunmen from the al Qaeda affiliate Al-Shabaab gained access to the building after the car bomb explosion at the gate, he said.
There is an ongoing operation to rescue people from inside the hotel, according to police. It is unclear at the moment whether there are casualties.
The reason for the attack is also unclear but Hassan said a top military commander was inside the hotel at the time of the attack. Other senior military officials and lawmakers were also inside the hotel, Hassan said.
The hotel is frequented by Members of Parliament, politicians, and security officials, but not foreigners.
Outside the hotel is the main security checkpoint to the airport and Halane base, which houses western missions, including the US embassy.
Al-Shabaab has claimed responsibility for the attack through a statement broadcast by Andalus Radio, its mouthpiece channel. CNN has been unable to independently verify this claim.
US troops in Somalia primarily train and advise local Somali forces as they battle Al-Shabaab. The US military also carries out airstrikes against the group and the local ISIS affiliate in the country, killing a top Al-Shabaab leader in a targeted strike in September.
Omar Nor reported from Mogadishu and Radina Gigova wrote from Atlanta, Georgia.