Talk about bad timing.

A man working as a custodian at Westport Police Department headquarters dropped a small packet containing what police said was an illegal pain killer while on the job late last week.

The contraband fell out of his pocket right in front of the chief's office, police said.

And Chief Dale Call, noticing the folded-paper packet, discovered that it held the pain killer oxycodone, according to the report.

Call, who was named chief in October, was walking out of his office Thursday of last week when he saw folded white paper fall out of custodian Victor Ramirez's pocket, police said. Call picked up the packet and found a small, oval-shaped yellow pill, later identified as oxycodone, police said.

Ramirez, a 50-year-old Norwalk resident, did not have a prescription for the medication and said he bought it from an individual in his hometown, according to the report.

He was terminated from his job with the Police Department.

Charged with possession of a controlled substance, Ramirez was released on a promise to appear Dec. 8 in Norwalk Superior Court.