The British Navy then sent commandos to board the boat, capturing the pirates and seizing their weapons, Xinhua reported Friday.
Defence Secretary Philip Hammond said the British troops, part of a NATO-led counter-piracy force, could be "proud" of the success.
Captain Gerry Northwood, who leads the operation, said Tuesday's capture will "send a clear message to other Somali pirates that we will not tolerate their attacks on international shipping".
Earlier this week, the same British ship, RFA Fort Victoria, foiled an attempt by Somali pirates to attack cargo ships in the Indian Ocean, the ministry added.
Deccan Herald is on WhatsApp Channels| Join now for Breaking News & Editor's Picks