The Iran-backed Houthi rebels said they hijacked the ship over its connection to Israel and took the crew as hostages. The group warned that it would continue to target ships in international waters that were linked to or owned by Israelis until the end of Israel’s campaign against Gaza’s Hamas rulers.

“All ships belonging to the Israeli enemy or that deal with it will become legitimate targets,” the Houthis said.

Israeli Prime Minister Benjamin Netanyahu’s office had blamed the Houthis for the attack on the Bahamas-flagged Galaxy Leader, a vehicle carrier affiliated with an Israeli billionaire. It said the 25 crew members had a range of nationalities, including Bulgarian, Filipino, Mexican and Ukrainian, but that no Israelis had been on board.