BOSASO, Somalia: Somali maritime forces have exchanged gunfire with the hijackers of an oil tanker in the semi-autonomous region of Puntland, the head of the maritime force said.

This is the first time Somali pirates have taken over a commercial ship since 2012 and locals blame the attack on foreign fishermen flooding into their waters, and are also angry with their government for licensing some of the ships.

“We tried to intercept a boat that was carrying supplies to the pirates, but pirates on the ship fired on us and so the pirate boat escaped,” said Abdul Rahman Mohammad Hassan, the director general of the maritime force in Puntland.

Pirate Abdullahi claimed the pirates killed a member of the marine force and injured another, but Hassan said that was untrue.

Residents near the ship, which was hijacked on Monday with eight Sri Lankan crew aboard, confirmed hearing the gunfire.

In their heyday in 2011, Somali pirates launched 237 attacks off the coast of Somalia, data from the International Maritime Bureau showed, and held hundreds of hostages.

But attacks fell sharply after crews put safety measures into place and regional naval forces stepped up patrols.