Iran responded by threatening oil tankers near ports in Kuwait and Bahrain.