The OED says "The name given during the South African war, 18991902, to the Maxim automatic quick-firing gun". Only in the next decade was it used "as a representation for a repetitive sound". (All of this is only for English, of course.) Alan