Al-Shabaab militants have kidnapped 14 crew members of an Iranian fishing boat off the coast of Somalia, seizing them as their vessel washed ashore, Iranian state television and residents said.

The extremists detained the fishermen after the vessel drifted into the militants’ stronghold on Wednesday, Yasin Maalin, a resident of the town of El-Dher in Somalia’s coastal region of Galgadud, told the Associated Press by telephone. Ali Hussein, another resident, corroborated his account.

Al-Shabaab, a militant group that is allied with al-Qaida and has carried out many deadly attacks across Somalia, did not immediately claim responsibility for the kidnapping.

On Wednesday night, the Iranian state television station’s scrolling news bar announced the kidnapping, saying the vessel owned by an Iranian fishing organisation suffered a technical fault near the Somali coast. It did not elaborate.

Despite losing some of its top leaders in US air strikes and being pushed by African Union forces out of the capital, Mogadishu, al-Shabaab still has control over territory in south and central Somalia. The group carries out deadly bombings against government targets and public places seen as popular with foreigners.

The extremists also have attacked neighbouring Kenya, which has sent troops to Somalia to fight the insurgents.

Piracy off the coast of Somalia once was a serious threat to the global shipping industry, but attacks have dropped dramatically the last several years after ships began carrying armed guards.