Cody Ropiak, 21, of Riverside Avenue, faces a weapon charge after a motor vehicle stop early Monday.
Ropiak was stopped by police because the vehicle he was operating had only one functioning headlight, according to the report.
After the stop, the officer observed a gun's black handle protruding from under a small duffle bag in the rear of the vehicle, police said.
Police said they later determined that it was an airsoft or BB gun that had the orange tip broken off, and that the gun's markings also appeared to have been blacked out so that it would appear to be a more potent firearm.
He was charged with having a weapon in a motor vehicle.
Released after posting a $1,500 bond, Ropiak is scheduled to appear Oct. 18 in Norwalk Superior Court.