LODI (CBS13) – Police are investigating after an officer’s gun was accidentally discharged by a child at August’s Literacy Fair in downtown Lodi.

“This should have never happened, especially in an environment where children were present,” Lodi Police Chief Mark Helms said.

READ MORE: Gov. Gavin Newsom Says California’s COVID-19 Mask Mandate To End After June 15

On Aug. 24, SWAT Officer Robert Rench was displaying tactical equipment to children at the Lodi Public Library. A boy — around 6 to 8 years old — walked up behind Rench and pulled the trigger of his holstered handgun, say officials.

As a result, the bullet grazed the side of the officer’s leg.

The boy then fled and his identity is unknown.

READ MORE: Stockton Police Chief Praises Hero Neighbor Who Saved Little Boy During Deadly Shooting

Helms says the department is focusing on learning more about the incident and how to prevent something similar from happening again.

“As peace officers, we have a responsibility to the public to ensure our weapons and equipment are properly safeguarded,” he said.

Police want to speak with the boy to better understand how the incident occurred.

“We’re fortunate this event didn’t result in a tragedy,” said Helms.

MORE NEWS: Kids 12-15 In California Can Sign Up For COVID-19 Vaccination Starting Thursday Morning

No other injuries were reported.