The Framingham man accused of shooting another man during a skirmish at a pro-Israel demonstration in Newton has pleaded not guilty to the charges against him.

Scott Hayes, 47, is facing charges that include assault and battery with a dangerous weapon. After making his plea in Newton District Court on Friday afternoon, Hayes was ordered to post $5,000 cash bail. Under the terms of his release, he will be fitted with a GPS monitor and was told to avoid both the city of Newton and the man he allegedly shot. He must also observe a 7 p.m. to 6 a.m. curfew.

Hayes is due back in court on Nov. 7.

In a statement, Middlesex District Attorney Marian Ryan said Hayes was part of a pro-Israel rally gathered near Washington and Harvard streets in Newton on Thursday evening. The statement says a 31-year-old Newton man walking on the other side of the street exchanged words with the demonstrators, then crossed the street and tackled Hayes. During the scuffle that followed, Hayes allegedly shot the 31-year-old man.

The shooting victim, who authorities have not identified by name, was taken to the hospital for treatment of life-threatening injuries. On Friday, Newton Police applied for a criminal complaint for assault and battery against him.

A video of the incident is being widely shown on social media.

The below video depicts a violent encounter. Discretion is advised.

David Sherman of Newton, who participated in the demonstration, recalled experiencing confusion during the skirmish.

“I have never heard a gun go off that close to me. I almost ignored it,” Sherman said. “It was after we managed to get the guy off Scott that we saw there was a wound and we started treating it.”

“There should be no question that violence of any kind in our democratic society is abhorrent,” the Jewish Community Relations Council of Greater Boston said in a statement following the incident. “People’s rights to gather in civil, non-violent public demonstrations must be sacrosanct.”

Newton Police Lt. Amanda Henrickson told GBH News the department is coordinating with Ryan’s office on the case. The FBI is aware of the incident and is coordinating with law enforcement partners as the investigation continues to unfold.