It was not immediately clear who had carried out the attack, which added to growing concerns about the impact of Russia's war in Ukraine on commercial shipping in the area.