Man arrested after firing gun in residence