The shooting was reported around 1:30 p.m. Tuesday at the building located at 70 Hunter Street in Woodbury.
The Gloucester County Prosecutor's Office tells Action News that a detective was wounded when her gun accidentally went off in the parking lot.
The wound was not life-threatening and no one else was injured.
That detective was taken to the hospital for treatment.
The prosecutor said the detective is not being identified due to the "nature of his assignment."