A Massachusetts State Police trooper was hit by a moped and injured while trying to de-escalate an “aggressive” crowd of hundreds gathered and setting off illegal fireworks in Revere, police say.

Just before 11 p.m. Friday, both state and local police responded to a large crowd of several hundred in Thornton Street in Revere, State Police said.

Within the massive crowd, people were setting off illegal fireworks in the middle of the street “posing a significant public safety threat to those gathered as well as the adjacent residential neighborhood.”

The crowd “swelled and became aggressive,” State Police said, and additional responders from surrounding communities were requested to the scene to “de-escalate and maintain public safety.”

During the efforts, a moped allegedly drove through the crowd, the department said. The vehicle struck and injured a trooper working in the crowd.

The trooper was taken to the hospital in an ambulance with non-life-threatening injuries, State Police said. No other injuries were initially reported Saturday.

The moped-driver was apprehended and taken into custody, police said. The suspect was identified as Deshakraaun Abdullahmuhammud, 34, of Everett.

Abdullahmuhammud faces charges of driving with a suspended license, assault with a dangerous weapon, negligent operation, failure to stop for police, and operating an unregistered motor vehicle.

The incident follows a similar crash in late June in which a teenager hit a State Police lieutenant with a stolen motorcycle on Revere Beach Boulevard. Weeks later, the lieutenant Donald Bossi remains in “critical condition,” State Police Colonel Geoffrey Noble said Saturday, expressing support for both troopers.

Noble said police will “not tolerate behavior that poses a danger to those living, working, and visiting Massachusetts.”

“Despite our best efforts to de-escalate two situations around Revere Beach, aggressive drivers on stolen and unregistered vehicles in this area have seriously injured two Troopers in the same number of weeks,” said Noble. “We share the serious public safety concerns and will continue our sustained, proactive enforcement efforts in the weeks ahead.”