SYRACUSE, N.Y. -- A deputy accidentally shot himself Monday night inside an Onondaga County Justice Center locker room, deputies said.

Deputy Justin Brannock, 28, was taking his personal firearm out of its holster at 10:28 p.m. when he accidentally fired his gun, said Sgt. Jon Seeber, an Onondaga County Justice Center spokesman. Brannock was in the employee locker room in an unsecured section of the jail, he said.

Seeber said Brannock was expected to be released from the hospital early this morning.

Initial police scanner reports indicated a bullet grazed the deputy's leg.

Brannock has worked for the sheriff's custody department for nearly five years, Seeber said. He is assigned to the booking section of the jail.

No other injuries were reported. The incident remains under investigation.