NAIROBI, Kenya -- Five of Somalia's Islamic extremists attacked a leading hotel in the capital at dawn Sunday, killing at least six people and injuring 10, before all the assailants were killed by security forces.
The Somali army and the African Union forces ended the siege by the al-Shabab attackers at the Sahafi Hotel by midday, police commander Ali Ahmed said.
"It's over now. We have killed all the attackers," Ahmed told The Associated Press by telephone. "They came under cover of darkness and attacked the hotel while some of the guards were sleeping."
The attack started at daybreak when a suicide bomber detonated an explosives-laden vehicle at the hotel's entrance gate and then four men, armed with AK-47 rifles, propelled grenades and suicide vests, invaded the premises. Some of them went into rooms to kill residents while others went to the hotel's rooftop to fight off government soldiers who came to battle them, said Capt. Mohamed Hussein, a senior Somali police officer.
A second explosion came from a car bomb outside the hotel, said witnesses.
Among those killed was the hotel's owner and a former military general, Hussein said.
"Had it not been for the courage of some of the hotel residents who fought back the terrorists, the death toll could have been a lot higher than it is now," Hussein said.
"They came in firing bullets randomly and chanting God is great - they shot anyone they could see," said a surviving hotel resident, Ahmed Abdulle.
"The guards tried to fight them off but it was too late, they were already inside," said Abdulle by phone from Mogadishu. "I hid myself under my bed until security forces broke into my room and got me out a back door. It was a terrible experience."
Al-Shabab, the Islamic extremist rebels waging an insurgency against Somalia's weak U.N.- backed government, claimed responsibility for the attack in a statement by Sheikh Abdiaziz Abu-Musab, the insurgents' military spokesman, delivered on the group's radio station, Andulus.
Somali troops and African Union forces fought to take 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 al-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 advisers were abducted from the hotel by militants in 2009.
Despite being forced out of Mogadishu and many other cities and towns across Somalia, al Shabab continues to launch lethal attacks in the capital and elsewhere. Al-Shabab is fighting to oust the Mogadishu government and install a strict version of Shariah law. Al-Shabab 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.
Sunday's attack was condemned by Somali President Hassan Sheikh Mohamud.
"This is the action of an increasingly desperate, internally-divided group of extremists ... (who) seek to grab the headlines through killing innocent Muslims."
Mohamud urged Somalis "to prevent extremists from distorting the faith of our fathers ... We must do this by confronting their warped ideology and liberating Somalia from them entirely."
AP journalist Mohamed Sheikh Nor contributed to this report from Mogadishu.
This story has been corrected to show that 148 people were killed in the Garissa attack, not 150.
Somalia: 5 Islamic militants attack hotel in capital, kill 6