The attackers seized control of the vessel and redirected it toward Somalia.