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: Maryland Up To 9 Monkeypox Cases, Health Department Confirms

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

READ MORE: Maryland Weather: Muggy With A Chance For Showers & Storms

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: Bowie Picks Up The Pieces After Possible Tornado Leaves Trail Of Damage

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