Islamist Shebab gunmen killed around 20 people in a popular beachside restaurant in Somalia, police said Friday, as neighbouring Kenya mourned soldiers killed by the Al Qaeda-linked group last week.
In the attack in Mogadishu, five gunmen detonated a bomb before storming the busy restaurant and spraying gunfire at terrified customers late on Thursday.
"They killed nearly 20 people, including women and children," Somali police officer Mohamed Abdirahman said, describing it as a "barbaric and brutal attack against innocent civilians".
The Shebab, which is fighting to overthrow the internationally-backed government in Mogadishu, carries out regular attacks in the capital, as well as against African Union troops in the countryside.
Somali Prime Minister Omar Abdirashid Sharmarke condemned the "savage" attack.
Last week the insurgents stormed a Kenyan army base at El-Adde in southwest Somalia, in the latest incident of an AU Mission in Somalia (AMISOM) base being overrun by the group.
A Shebab statement said that more than 100 Kenyan soldiers based at the mission were killed and others captured.
Kenya has so far refused to say how many of its soldiers were killed, injured or remain missing.
Kenyan President Uhuru Kenyatta on Friday visited wounded soldiers recovering in hospital in the capital Nairobi and praised the "bravery and dedication" of the "fallen heroes" in an address to dignitaries and relatives of the dead and injured.
The Lido beach area in Mogadishu is full of restaurants, including upmarket establishments popular with business people and diaspora Somalis who have returned home to the city.
After a huge explosion, gunmen burst into the restaurant on Thursday evening as diners were sitting down for their evening meal at the start of Somalia's weekend.
"The fact that they have chosen this location during a weekend night shows how merciless the Shebab militants are," Abdirahman added.
"They wanted to kill more civilians -- but the security forces rescued most of the people."
The Al-Qaeda-linked Shebab claimed responsibility for the attack, in which four of their gunmen were also killed, and one captured.
"The mujahedeen fighters targeted the Lido Beach," the militants said on the group's Radio Andalus, calling it a "major operation against the enemy of Allah".
Security minister Abdirazak Omar Mohamed told reporters that four of the attackers were shot dead by security forces.
The minister added that one gunman was captured when security forces entered the building to end the attack.
Survivors described the gunmen spraying those in the restaurant with automatic weapons.
Abdirahman Halane was close to the restaurant when the gunmen attacked, and said some of those killed were hit by an explosion as they tried to flee.
"The gunmen entered the popular Lido Sea Food Restaurant from the back door and started shooting... a few minutes later there was a heavy explosion at the front gate while people were trying to escape," Halane said.
"There was confusion, everybody started panicking, and some of them ran towards the gunmen and they were shot dead, I was lucky to escape," he said.
Another witness described how some of those killed had died in the large blast, while others were shot dead at point blank range.
"There is a big mess here and many people died, I saw the dead bodies of 19 people who were killed during the attack," said Hussein Ali, who saw the bodies being carried out of the damaged building.
"Some of the people died in the explosion while fleeing and others were shot dead up close."