The Pentagon has not said which American submarine fired the torpedo, except to say it was a fast-attack submarine.
The Iranian warship that was sunk in the Indian Ocean likely didn’t have the technology needed to defend itself against submarines.