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

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