By CBS13 Staff

LODI (CBS13) — A 17-year-old was arrested for carrying a loaded ghost gun in Lodi, police said Friday.

Around 7:23 p.m. Thursday in the area of E. Oak Street, detectives located a group of known gang affiliates and attempted to detain them, the Lodi Police Department said.

READ MORE: Sacramento Metro Fire Ramps Up Fire Resources For Fourth Of July Weekend

One of the members of the group ran away and was reportedly seen removing a handgun from his waistband and tossing it aside. The suspect was eventually caught and detained by law enforcement.

READ MORE: 'We're Sick Of The Number 22': Local Veterans Launch Nonprofit In Roseville To Help Other Veterans In Need

The firearm was recovered and determined to be a loaded 9mm unserialized polymer handgun or ghost gun, police said.

MORE NEWS: 3 Homes Among Structures Destroyed By Fire In Olivehurst

The suspect, a 17-year-old boy with alleged gang ties and several firearm-related arrests, was arrested and booked into juvenile hall on multiple felony charges.