Attempts to shoot torpedoes are identified in both world wars. Machine guns are mentioned as one weapon used. No success rate is supplied.
Notable Point ยท 2:59:02-2:59:07
Earlier attempts to shoot incoming torpedoes
The anti-torpedo gun proposal has an earlier precedent in wartime attempts to fire on incoming torpedoes.