Islamic extremists attacked a hotel in the Somali capital of Mogadishu at dawn Sunday, killing at least nine people and injuring 10, a police official said.
Security forces ended the siege by Shabab attackers at the Sahafi Hotel by midday, said police commander Ali Ahmed.
"It's over now, we have killed all the attackers." he said.
"They came under cover of darkness and attacked the hotel while some of the guards were sleeping," he said.
The attack started at daybreak when a suicide bomber detonated a vehicle laden with explosives at the gate of the hotel, then gunmen ran into the hotel and shot at people, police Capt. Mohamed Hussein said.
"They have killed the owner of the hotel, a former military general, and other officials during the attack," Hussein said by phone.
A second explosion came from a car bomb outside the hotel, witnesses said.
Shabab, the Islamic extremist rebels waging an insurgency against Somalia's weak U.N.-backed government, claimed responsibility for the attack on the group's radio station, Andulus. The fighters infiltrated the hotel, Sheik Abdiaziz Abu-Musab, Shabab's military spokesman, told the radio station.
Somali troops and African Union forces went to the scene and took control of the hotel, according to a Twitter post by the African Union mission in Somalia, which has deployed troops to bolster Somalia's government against Shabab's insurgency.
One photographer was among those killed and another was injured, according to witnesses.
"I was at the scene of the explosion, busy taking photos, when a vehicle full of explosives exploded beside me. I fell on the ground and saw part of my body bleeding, I was with another journalist who was killed in the attack," said Feisal Omar, who has since been discharged from the Mogadishu hospital.
The Sahafi Hotel is often frequented by Somali government officials and business executives and it has been targeted before. Two French security advisors were abducted from the hotel by militants in 2009.
Despite being forced out of Mogadishu and many other cities and towns across Somalia, Shabab continues to launch lethal attacks in the capital and elsewhere. It is fighting to oust the Mogadishu government and install a strict version of Shariah law. Shabab militants have also attacked neighboring countries that have sent troops to support the Mogadishu government. The extremist rebels killed 148 people in an attack on a college in Garissa, Kenya, in April.