A US air strike assisting government troops in Somalia has killed about 30 Islamist al-Shabab militants, the US military says.

The operation happened near the town of Galcad, about 260km (162 miles) northeast of the capital Mogadishu.

Over the past few days, the Somali army and al-Shabab militants have fought for control of the town.

Friday's air strike came as the army was being attacked by more than 100 militants, the US Africa Command says.

Earlier the Islamists killed seven soldiers after storming a military base in Galcad. Somalia's Information Ministry said dozens of the militants were killed.

Al-Shabab has been fighting Somalia's central government since 2006, aiming to impose an extremist Islamist regime. While it has been pushed out of Mogadishu and other areas it continues to attack military and civilian targets.

Keep Reading

Last Monday the government said its army and local militias had captured the port town of Harardhere, which had been a key al-Shabab supply centre since 2010.

In its report on the Galcad fighting the US Africa Command said three al-Shabab vehicles were destroyed and "the command assesses that no civilians were injured or killed". The details have not been independently verified.

"US Africa Command's forces will continue training, advising and equipping partner forces to help give them the tools they need to defeat al-Shabab, the largest and most deadly al-Qaeda network in the world," the statement said.