An Iranian vessel came within 150 yards of a US Navy ship in the Gulf, resulting in warning shots being fired by the US.