The person you are most likely to use a gun on is yourself.
The second most likely person you are to use a gun on is your spouse, with men overwhelmingly preferring firearms as a form of spousal homicide.
The third most likely person you are to use a gun on is a family/tenant.
Home invaders are way down on the list of "at-home gun use" targets. And, to make things even more stick, police tend to be more concerned with facing an armed resident than actual burglars. This leads to a high rate of police homicides ruled justifiable, on the grounds that the officer entering the home believed that the resident possessed a gun.
So, we're looking at a solid four different likely ways keeping a gun in your home will result in the death of you or another lawful resident of your house.