Keep in mind that in many jurisdictions, the burden of proof is on the prosecutor.
In many it is not. A few years ago, in many more it was not.
In most places it used to be viewed as once you pulled the trigger, you committed a crime, and would be charged and left defending yourself in court, with "self defense" as a legal defense.
Within the last couple of years Ohio passed a Castle law, and one of the selling points was that if you shoot someone entering your home, the burden of proof is now on the prosecutor. Now, without sufficient evendence, you will not have to defend yourself, as you will not likely even be charged.