SALISBURY, Mass. (AP) — The Salisbury man shot and killed by police after refusing to drop a knife and a machete has been publicly identified.

The Essex district attorney's office on Friday identified the man killed Thursday as 29-year-old Nicolas Foster.

Authorities say Foster was shot by officers after stabbing his wife and another man. The victims survived and are recovering from "severe stab wounds" in the hospital. Their names were not released.

District Attorney Jonathan Blodgett says Foster rammed a Salisbury police cruiser as he tried to flee, then got out and charged at the officers while wielding a knife and a machete.

He said police tried to disarm him, even using a Taser, and then shot him.

The investigation is ongoing.