Do you know what the thread is??? [Like 1/2" x 28tpi or maybe 12mm x 1.5mm]...
My WAG would be for a restrictor plug with a small aperture...To fire blanks, but still spill out smoke & sparks...It was probably removed so you wouldn't blow your hand off with 9mm...TV or movie prop maybe...Or just a re-enactor...