Shooting would have been quite justified. This is a genuine case of “I was in fear for my life”.
What’s important to note is that using deadly force to defend a dwelling must meet one of two conditions: 1. The entry is made in a violent, riotous, or tumultuous manner AND the person reasonably believes deadly force is necessary to prevent an assault or violence to someone in the dwelling; OR, 2. The person believes that deadly force is necessary to prevent a felony in the dwelling. The first condition has two parts to it and they must both be satisfied for someone to use deadly force. Specifically, the aggressor must make entry into the home in a violent manner and the person using deadly force must have a reasonable belief that it is necessary to prevent violence against someone in the dwelling.