From Ottoman Turkish تفنك (tüfenk). Compare Karakhanid [script needed] (tüwek), a Turkic onomatopoeia attested in Dīwān Luḡāt at-Turk meaning a blowpipe shooting pebbles against birds.
Cognate with Turkmen tüpeň, Azerbaijani tüfəng, Nogai туьбек (tübek), etc.