MOORHEAD, Minn. (AP/WCCO) — A man accused of spray-painting hate messages on a Minnesota mosque told police he meant it as a joke, according to a complaint filed Thursday.

Benjamin Enderle, 22, of Moorhead, is charged with criminal damage to property and misdemeanor harassment with bias, both felonies, in the vandalism that was discovered early Sunday. He made his first court appearance Thursday morning and told a judge that “I regretted doing it right after I did it.”

READ MORE: Charges: Maple Grove Physician Javaid Saleem Sexually Assaulted Female Patient In Unnecessary Examination

Authorities said Enderle vandalized the outside of the Moorhead Fargo Islamic Community Center building and grounds with a swastika and phrases such as “Death to Islam” and “Kane lives,” among others. Enderle told police he wanted to get a reaction from the community and the media and said he doesn’t “hate them,” according to the complaint.

Members of the community turned out with brushes, chemicals, and power washers earlier this week to help clean the mosque.

READ MORE: Police Seek Public's Help Finding Missing 28-Year-Old

Enderle was arrested after a Walmart employee examined spray paint purchase records and store surveillance video in search of a possible suspect. He saw that Enderle was wearing the same jacket as the attacker was seen wearing on surveillance video at the mosque on the night of the vandalism.

Enderle was not represented by an attorney at Thursday’s hearing, where the judge set his bail at $2,000 on condition that he remain law abiding, make all future court appearances, and keep the court informed of his current address. The judge also said that Enderle could post $40,000 bail or bond with no conditions.

Enderle’s next court appearance is slated for May 11.

MORE NEWS: 2 Men Charged With Assaulting Officers Amid Weekend Unrest In Downtown Minneapolis

(© Copyright 2020 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)