Somali Islamist militants attacked an army base in the south of the Horn of Africa country, killing at least five soldiers, a regional official said.
Al-Shabaab fighters staged an overnight raid on the facility, which is located about 40 kilometers (24.9 miles) from the capital, Mogadishu, stealing weapons and vehicles, regional governor Ibrahim Aden Ali said by phone.
The al-Qaeda-linked group said it killed more than 30 Somali troops. It commented in a statement to Radio Andalus, a broadcaster that supports its insurgency.
Al-Shabaab has waged an insurgency in Somalia since 2006 in a bid to impose its strict version of Islamic law. Though forced out of the capital by an African Union force and the national army in 2011, it continues to conduct regular attacks.