The move is in response to an attack on a vessel last week in which two people were killed.