Gardai recovered the firearm after responding to a public order incident