Officials say the shooting at the Hillbrook Juvenile Detention Center is being ruled accidental.

The Onondaga County Sheriff's Office said it happened around 12:30 p.m. Thursday.

They say the victim was a Seneca County sheriff’s deputy who was there on an inmate relay and said that the deputy was holstering a weapon when it accidentally went off.

The victim suffered a non life-threatening leg injury and was transported to an area hospital for treatment.