Suspect attempted to buy the drug Suboxone at a Target and Publix in Pace while impersonating a Santa Rosa deputy.

PACE — A guest in the home of a former deputy with the Santa Rosa County Sheriff's Office is accused of stealing an old uniform in an attempt to get drugs at local pharmacies.

An arrest report from SRSO alleges Johnny Ray Wilson, 34, who is listed as homeless from Milton, went to a Target store in Pace and asked a pharmacy employee for the drug Suboxone. Investigators say he wore a dark green deputy uniform and pointed to a badge in his notebook when asked for his credentials.

The employee didn't give Wilson the drug.

The arrest report also states that Wilson was captured on surveillance video at the Target shoplifting a pair of pants and a soda. It also alleges he attempted a similar drug buy at a Publix in Pace.

Investigators tracked Wilson's vehicle through the license plate identification database and discovered it belonged to the former Santa Rosa deputy. The arrest report noted Wilson took the former deputy's firearm when he borrowed his car.

According to the Santa Rosa County Jail website, Wilson is being held on a host of charges including felony counts for grand theft, grand theft of firearm, impersonating a law enforcement officer, possession of a weapon by convicted felon, possession controlled substance, escape and driving on a permanently revoked license.

Wilson is being held on $76,500 bond. No first appearance date was listed.

The Associated Press contributed to this story.