The attack, which took place on Saturday, has raised alarms about the safety of maritime trade routes in this vital waterway.