Police shot and killed an 18-year-old man who charged at them while wielding a machete in Brooklyn on Tuesday night — after he nearly chopped off a woman’s thumb, sources told The Post