An Alabama man who yelled “womp womp” and waved a gun at people protesting the separation of migrant families appeared in court on Monday on charges of reckless endangerment and menacing, officials said.

The man, Shane Ryan Sealy, 34, pleaded not guilty to the misdemeanors in Huntsville Municipal Court, and a trial date was set for Aug. 21, said Christy Wampler, a court supervisor. Mr. Sealy was released on bond.

At about noon on Saturday, Mr. Sealy began heckling a gathering of approximately 150 to 200 people at a public park in Huntsville, a city of about 190,000 people in northern Alabama.

The event was one of dozens of “families belong together” events held in cities across the country to protest President Trump’s “zero tolerance” immigration policy, which included separating families and children who arrived together at the United States-Mexico border. The president signed an executive order on June 20 to end the practice, but more than 2,000 children remain separated from their parents.