STAFFORD COURTHOUSE, Va. (WJZ) — A black man wearing a Ku Klux Klan robe at a Virginia Target told deputies he was performing a social experiment.

The Stafford County Sheriff’s Office was called to a Target store at the Stafford Marketplace around 2:30 p.m. to investigate reports of someone wearing a Ku Klux Klan outfit, Maj. Shawn Kimmitz said in a video statement posted to social media Tuesday.

READ MORE: WATCH LIVE: Baltimore Mayor Brandon Scott To Hold COVID-19 News Conference

Kimmitz said they learned the man inside the robe was black and didn’t live in the area.

READ MORE: Teens Shot In Baltimore Thursday Still In Hospital, One In Grave Condition; Police Following Leads

Deputies told him he couldn’t wear the mask in public and he left, according to authorities. Virginia law prohibits wearing masks with the intent to conceal identity in public.

A photo posted to Twitter by a witness at the shopping center showed someone dressed in the white robe and hood talking to deputies while others looked on.

MORE NEWS: President Joe Biden To Visit Emergent BioSolutions' Baltimore Lab Making Johnson & Johnson's COVID-19 Vaccine Next Week, White House Confirms

The sheriff’s office didn’t identify the man.