A Smyrna police officer arrested by a joint drug task force on Thursday night has lost his job.

Authorities told Channel 2’s Jodie Fleischer that Patrol Officer Curtis Clyde Cook,55, was arrested during a traffic stop conducted by the Cobb County Sheriff’s Cobra Unit.

Agents said they smelled marijuana coming from the vehicle and found more than an ounce of marijuana hidden in Cook’s crotch.

Cook was charged with felony possession of marijuana and possession of a weapon during commission of a crime. He was released from the Cobb County Jail on $10,000 bond.

An investigation determined Cook violated the police department’s code of ethics and Cook was fired by Chief Stanley Hook on Friday morning, a police spokesman said.

Cook served two stints with the department, totaling 16 years of service. Cook had worked as a police officer for more than 23 years, authorities said.