TORONTO -- A veteran police detective with Toronto's Guns and Gangs Task Force has been charged after cocaine was allegedly found in his wallet by another officer.

Toronto police say the detective was at a courthouse in the city's east-end on Sept. 19 as a witness to a matter related to his duties.

They say the detective left behind his wallet, which was found by another officer who went through it searching for identification.

Police allege the other officer discovered a small amount of cocaine inside the wallet, which they say wasn't related to the detective's work.

Det.-Const. Kirk Blake, 46, was charged Thursday with possession of a narcotic.

He is scheduled to appear in court on Feb. 9.