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: 6 Dead, 30 Wounded In Shooting At Chicago-Area July 4 Parade: Police

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: For Some, Fourth Of July Traditions Down Jersey Shore Date Back To 1960's

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: Marple Newtown Fourth Of July Parade Deeply Rooted In Tradition For Many Families

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