Mogadishu: Al Shabab militants in Somalia have publicly executed four men they accused of spying, including one they claimed helped kill their supreme leader in a US drone strike, the Al Qaida-linked group and local sources said on Saturday.

The executions took place on Friday evening in a village in the Bay region in the centre of the country, the sources said.

Three of the men were shot by firing squad while the fourth, accused of helping the United States to kill Al Shabab leader Ahmad Godane in September 2014, was decapitated.

“The Islamic court in the Bay and Bakool regions carried out” the executions of “four spies who worked for the US and Kenyan Intelligence Agencies,” the group said in a statement on a pro-Al Shabab website.

“Mohammad Adan Nur Hassan, one of the spies, was responsible for the airstrike that killed” Godane.

Al Shabab was pushed out of Mogadishu in 2011 but continues to carry out attacks on military, political and civilian targets aimed at undermining the internationally-backed Somali government.

In recent months they have claimed attacks on bases of the African Union peacekeeping mission in Somalia (AMISOM).