If they had actually stepped inside the house, they could be killed. I don’t know the law about someone trying to break down your door rather than sneak in. I’ve always been told that you’re 100% covered if they are inside. I’d think you’d have an arguable case if they were bashing down your door.
In my house, we’re never farther away than three feet from a handgun.