A party near the University of Colorado in Boulder left police injured Saturday after rocks and bricks were thrown at officers who shut down the large maskless gathering.

The party took place west of the campus in an area known as University Hill with police arriving shortly after 8 p.m. local time. Hundreds were gathered in the neighborhood when police arrived and warned the crowd to disperse or face tear gas, arrest, or use of force. Videos showed damage to vehicles and broken glass.

Three members of the SWAT team suffered minor injuries after being hit with rocks and bricks. Police on Sunday said the officers were in good condition. A fire truck and an armored vehicle were also damaged, and at least one car was flipped.

Pictures and videos of crowds emerged on social media. Mitchell Byars, a reporter for the Daily Camera, a daily newspaper in Boulder, captured video and images of the conditions. 

Boulder District Attorney Michael Dougherty said on Sunday that he would take legal action against those responsible. 

“Our community was put at risk last night by the individuals involved in the incident in the Hill area. Their callous disregard for our community’s safety and well-being is shameful. There is no excuse for this conduct, especially while the people of this community endure the pandemic,” Dougherty said in a statement.

“The District Attorney’s Office will work closely with the Boulder Police Department to determine the identities of the people who damaged private property and assaulted first responders because they should be held fully responsible for their outrageous actions.”

The University of Colorado Boulder vowed to expel any student who resorted to violence.

“Any student who is found responsible for having engaged in acts of violence toward the law enforcement or other first responders will be removed from CU Boulder and not readmitted,” the school said in a  statement.

“We appreciate the efforts of law enforcement to address the unacceptable conduct of these students and apologize to the residents of University Hill for their behavior.”

Police have sought social media posts and body camera footage to identify offenders. 

On Sunday, University of Colorado Boulder students organized clean-up efforts, according to the Daily Camera.

colorado police A Boulder, Colorado, police officer was put on paid administrative leave Tuesday after a video showing him confronting a black man picking up trash went viral. In this image, Aurora Police officers continue to maintain a secure perimeter around the Century 16 movie theater a day after a gunman killed 12 people and injured 59 during an early morning screening of 'The Dark Knight Rises' in Colorado, July 21, 2012. Photo: Chip Somodevilla/Getty Images