BOSTON (WHDH) - A Boston police officer shot a knife-wielding suspect who tried to stab a second officer after repeatedly stabbing another man in Dorchester late Monday night, authorities said.

Officers patrolling the area of 208 Adams St. in full uniform and a marked police vehicle around 11:30 p.m. witnessed 32-year-old Luis Gomes, of Dorchester, stabbing another man with a knife, according to Boston Police Commissioner William Gross.

“It was a very violent attack,” Gross said. “As a matter of fact, the victim was stabbed in the neck and twice in the back.”

One officer tried to stop the knife-wielding suspect from further stabbing the victim but Gomes instead tried to stab the officer, Gross added.

“Being in fear of not only the stabbing victim’s life as well as the officer, the officer’s partner discharged the department issued firearm, striking the knife-wielding suspect in the thigh,” Gross said.

The officers then reportedly rendered first aid and applied a tourniquet to Gomes’ leg.

Boston EMS transported the stabbing victim and Gomes to area hospitals, where they are both listed in stable condition.

The officers were taken to a local hospital as part of the police department’s standard procedure but Gross says they were uninjured.

The knife was recovered at the scene, Gross added.

Gomes is expected to be arraigned on charges of armed assault with intent to murder and assault by means of a dangerous weapon.

Anyone with information that could help Boston police facilitate their investigation is encouraged to call 1-800-494-TIPS.

This is a developing story; stay with 7NEWS on-air and online for the latest updates.

(Copyright (c) 2024 Sunbeam Television. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.)

Join our Newsletter for the latest news right to your inbox