French commandoes have attacked a base of Islamist militants in Somalia, a Somali intelligence official said. Residents of the town said they heard explosions and gunfire.

The attack occurred in Bulomarer. The intelligence official, who insisted on anonymity because he was not allowed to discuss the case with the press, said it was apparently aimed at rescuing a foreign hostage.

A French security adviser was kidnapped by the militant Islamist group al-Shabab in 2009.

"We heard a series of explosions followed by gunfire just seconds after a helicopter flew over the town," Mohamed Ali, a resident of Bulomarer, said by phone.

"We don't know exactly what happened but the place was an al Shabab base and checkpoint."

France also began attacking Islamist militants in Mali this week.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.