Blimey - the TLAMipedia is not 100% sure
From what I can ascertain in 10 mins of google is that RN Sub 'D4 was the first in 1910/11' - Wikipedia just says it was first used by the Germans, but not backed up with any facts or figures.
Hmm, Google or Wikipedia - the choice is yours.