The Caldwell County, NC, district attorney announced Tuesday that a fatal officer-involved shooting of a man Friday in Hudson was justified.

James Preston Trexler Jr., 44, was shot and killed by police after calling officers to his home early Friday morning and threatening them with a spear, according to the Hudson Police Department.

Officers said they made two unsuccessful attempts to use less-lethal options to disarm Trexler, WSOC reports.

Police said Trexler threw a trash can at officers and made a lunging movement toward them with a spear that was interpreted as an imminent threat.

That’s when an officer shot Trexler and he died as a result of his wounds, police said.