A pirate was killed on Wednesday in an exchange of fire with a Dutch warship off the Somali coast.

"The frigate HNMLS Rotterdam, flagship of NATO's anti-piracy taskforce Ocean Shield came under fire from suspected pirates," said a NATO statement.

The ship responded and the dhow caught fire, it said, adding that members of the small boat's crew were then seen jumping into the water.

One member of the dhow's crew died while 25 were rescued by the crew of the Rotterdam, the statement added.