This is good news. I suggest that everyone learn to be effective with a gun. Our home was once invaded by an intruder. I shot the guy as soon as he made his way into the foyer. It didn't kill him, but it did stop him in his tracks. We later found out that he was armed. I cringe to think of what might have happened if I were unable to shoot my gun - or even worse, what would have happened if I didn't have a gun at all.
It sucks that you had to.
But it's good that you were able to.