Three officers were wounded last year by a ricocheting bullet following the “inadvertent discharge” of a gun, law enforcement officials said.