Somalia's Shebab insurgents killed at least six people Sunday in a huge car bomb attack on a heavily guarded hotel in the capital Mogadishu that is also home to several diplomatic missions, officials and witnesses said.
The suicide attack, the latest in a string of bomb blasts and killings in the war-torn Horn of Africa nation, came as US President Barack Obama left neighbouring Kenya and headed to Ethiopia, both key nations contributing troops to the African Union force battling the Al-Qaeda-affiliated group.
The White House strongly condemned the attack, describing it as "abhorrent".
In a statement quoted by jihadist websites, the Shebab said they attacked the Jazeera Palace hotel, which is home to the diplomatic missions of China, Qatar and the United Arab Emirates and popular among Somali government officials and foreign visitors.
"We have seen around six people killed, most of them hotel security guards," said government security officer Mohamed Jama, adding that the toll might rise.
Journalist Mohamed Abdikarim, who worked for Universal TV, was also among those killed, the National Union of Somali Journalists said in a message of condolence to his family.
The Shebab said the suicide bomber had attacked the hotel "in retaliation for the killing of dozens of innocent civilians" they claimed had died during attacks this week by Ethiopian forces against Shebab bases in southern Somalia.
Local resident Abdihakim Ainte, a political analyst, was nearby when the bomb exploded and described a "huge blast" that smashed his window.
The hotel was torn apart by the explosion, demolishing the side of the six-storey building and sending a thick plume of smoke high into the air, AFP reporters said.
Offices belonging to China's embassy inside the hotel were damaged by the blast and some of its staff were receiving treatment, Chinese state media reported, without giving further details.
The Jazeera is close to the fortified international airport, which houses the United Nations, Western diplomatic missions and AMISOM -- the AU force in Somalia.
The hotel has also been the target of Shebab attacks in the past, including in 2012 when suicide bombers stormed the hotel while President Hassan Sheikh Mohamud was inside.
Mohamud on Sunday condemned the "heinous terrorist attack".
"The terrorists are shaken by the joint military offensive engaged by the Somali and AMISOM troops, and they are desperately targeting innocent civilians," he said.
The White House also condemned the "abhorrent attack ... which purposefully and cruelly targeted innocent civilians".
"This attack is yet another reminder of the unconscionable atrocities that terrorist groups continue to perpetrate against the people of Somalia," National Security Council spokesman Ned Price said in a statement.
AMISOM, which helped to evacuate the wounded and rescue those who had been staying in the hotel, said the attack "demonstrates the demonic agenda" of the Shebab.
The Shebab are fighting to overthrow Somalia's Western-backed government which is propped up and protected by the 22,000-strong AMISOM force.
On Saturday Shebab gunmen in Mogadishu also killed MP Abdulahi Hussein Mohamud, spraying his vehicle with gunfire as he travelled through a southern district of the city, killing him, his two guards and the driver.
The Shebab said in a statement that its "mujahedeen fighters targeted and killed a member of the parliament and his guards", adding that it "will continue targeting" lawmakers.
The US president, speaking in Nairobi on Saturday, said that while the Shebab had been "weakened", the overall security threat posed by the group remained.
"We have been able to decrease their effective control within Somalia and have weakened those networks operating here in East Africa. That doesn't mean the problem is solved," Obama said.
"We can degrade significantly the capacity of the terrorist organisations, but they can still do damage," he added.
Somali government and AMISOM troops last week launched a fresh offensive aimed at flushing the insurgents out of rural areas in southern Somalia, in an operation involving Ethiopian and Kenyan forces.
Deployed to Somalia since 2007, AMISOM has helped push back Shebab across much of the country's south, retaking towns and territory the group had held for years.
US drone strikes have also taken their toll on Shebab, killing senior commanders, including the group's leader Ahmed Godane in September last year.