Erskine Childers, The Riddle of the Sands.

This is a slightly confusing passage in that the narrator and the sailor in mufti are the same person. Erskine Childers was indeed executed by an Irish firing squad, for obscure reasons.