What was the first submarine to launch a torpedo at an enemy ship during war?

History Trivia: What was the first submarine to launch a torpedo at an enemy ship during war?