The Iranian-backed militants on boats attacked a commercial ship and fired at U.S. helicopters before being sunk, U.S. officials said.