The US says it destroyed an Iran-affiliated boat in the Gulf of Oman, accusing it of conducting surveillance.