Shabab Fighters Kill Dozens, Including Children, in Somalia

MOGADISHU, Somalia — Shabab militants killed dozens of people — soldiers and civilians, including children — when they stormed a military base on Thursday in northeastern Somalia, officials said.

Reports about the number of people killed in the attack in the semiautonomous Puntland region varied widely. A spokesman for the Shabab, extremists who regularly carry out attacks against the government, said fighters had killed more than 60 soldiers and made off with the military’s equipment. Somali officials said far fewer people had been killed.

The Shabab often claim to have killed more people in their attacks than the government will acknowledge.

President Mohamed Abdullahi Mohamed of Somalia expressed his sadness for the slain soldiers in a statement on Thursday. “They fought hard and bravely for their country, to keep their people safe during this holy month of Ramadan,” he said.

The attack underscored the militants’ continued potency, even though they have lost territory and now control only a small part of the country. The Shabab have been fighting the United Nations-backed government in Mogadishu for years, seeking to impose their strict interpretation of Islam. They have also been behind attacks in Uganda and Kenya, including the Westgate Mall siege in Nairobi, Kenya, in 2013. In recent weeks, they have carried out a spate of attacks in Kenya, killing dozens.

The attack on Thursday showed that the Shabab are undefeated, said Alex de Waal, executive director of the World Peace Foundation and an expert on Somalia. “Their forces retain the capacity to mobilize forces and stage well-coordinated, targeted attacks,” he said, even in areas like Puntland, which has been relatively sheltered from the Shabab’s influence.

“They have a formidable intelligence network and a sufficient number of followers,” Mr. de Waal said.

The assault on the army base may have been a response to the military’s decision last week to sentence five Shabab members, arrested in April, to death.

It began with a large explosion as gunmen overran the base in Af-Urur, about 60 miles west of Bosaso, on the Gulf of Aden. The regional security minister, Abdi Ali Hersi, said the militants had killed village elders, women and children as they fought their way to the base.

A Shabab spokesman, Abdulaziz Abu Muscab, made no mention of civilian deaths.

“Our fighters have on Thursday morning raided and overran a military camp in Af-Urur village near Bosaso, where 61 Somali soldiers were confirmed killed,” he said.

Hussein Mohamed reported from Mogadishu, and Kimiko de Freytas-Tamura from Addis Ababa, Ethiopia.

A version of this article appears in print on , on Page A6 of the New York edition with the headline: Shabab Fighters Kill Dozens On Military Base in Somalia. Order Reprints | Today’s Paper | Subscribe