The US military targeted a site officials said posed a threat to American forces and commercial shipping in the Strait of Hormuz.