Feb 15 (Reuters) - The United States conducted a cyberattack recently against an Iranian military ship in the Red Sea and the Gulf of Aden that had been collecting intelligence on cargo vessels, NBC News reported on Thursday, citing three U.S. officials.

The cyberattack took place a week ago as part of a government response to the drone attack by Iranian-backed militias in Iraq that killed three U.S. service members in Jordan late last month and wounded dozens of others, the report said. (Reporting by Utkarsh Shetti in Bengaluru; Editing by Leslie Adler)