The shot rattled about us as we stood on the opened upper deck of the submarine, and Ned Land, in a mad moment, waved his handkerchief to the enemy, only to be instantly felled by the iron hand of Captain Nemo.
The use of the word mad contributes to the sense of
Ned Land feels in this situation.