GLOUCESTER TOWNSHIP An off-duty township police officer was injured when his privately owned gun went off while he was unloading it, police said.