PENNSBURG, Pa. (AP) — Prosecutors say their investigation has concluded that a police officer was justified in shooting and killing a man armed with a sword on a southeastern Pennsylvania street last month.

Upper Perk police were called shortly after 7:30 p.m. Feb. 9 by a relative who said a man armed with a sword was threatening to harm others, Montgomery County prosecutors said. Officers found the man with “a samurai-type sword” who ignored commands to drop the weapon and charged, after which an officer fired, prosecutors said.

READ MORE: Apartment Fire In Norwood Leaves Several People Injured

A 23-inch sword was recovered by the body of the man, who was identified as 27-year-old Trey Bartholemew of Pennsburg.

READ MORE: South Jersey Family Helping Those Affected By Ida In Louisiana

District Attorney Kevin Steele said Monday the shooting was a lawful use of force. He said police were told that the man had threatened to kill anyone he encountered, and the evidence after he encountered an officer was “that he tried to do just that.”

Steele said the officer acted to put a stop to a lethal threat, and the facts “support the use of deadly force.”

MORE NEWS: FEMA Recovery Center Opens In Philadelphia

(Copyright 2021 by The Associated Press. All Rights Reserved.)