Six people were killed and eight others injured when two car bombs exploded outside a hotel in Somalia's capital that often is used by foreigners and government officials, police said.
Senior police Captain Mohamed Hussein, who gave the casualty figures, said it was not immediately known who was responsible for the blasts outside the Jazeera Hotel, near Mogadishu's international airport.
In a radio message yesterday, a senior al-Shabab commander warned civilians to stay away from government buildings as well as sites controlled or owned by foreigners. The commander, Ali Mohammed Hussein, said attacks were imminent in Mogadishu.
The Jazeera Hotel has been the target of previous terrorist attacks. In September 2012, it was the scene of an assassination attempt on Somalia's president on his second day in office.
Al-Shabab once controlled Mogadishu, but it was ousted from the capital in August 2011. Despite some security gains made in the city over the years, the militants still penetrate the seaside capital to carry out suicide attacks.
Neighbouring Kenya has been the scene of multiple terrorist attacks since the country sent its military to Somalia in 2011 to fight al-Shabab. In September, the group claimed responsibility for an attack on the Westgate Mall in Nairobi that killed 67 people. Al-Shabab said it was in retribution for Kenya's involvement in Somalia.