According to vortaro.net, it seems that paf might be the answer but regargind the examples I'm unsure whether there might be some more specific word for the sound of a gunfire. Also, "La adventuro da Tinĉjo" uses it as well (althought it might not be correct).
Is "paf!" the best translation for "Bang!"?