A confrontation with an armed man ended with a State Police trooper firing a shot in the Hudson Valley