You can't shoot someone in the US for swinging something at your head. Otherwise all bar fights would end in gun violence like in a cheesy Western film.
In every state of which I’ve ever been a resident, responding with lethal force in such a case is in fact legal.