Obviously the homeowner needed a larger caliber gun, 4 shots center mass should have left the perp laying at the door.
Is it nearing the time for homeowners to have a mantrap entrance where a door closes behind any visitor, metal detectors /xrays reveal any weapons and neutralize the visitor prior to other door opening. Sounds Sci-fi but it may come to that and also no windows in the house. A camera and LCD screen to depict the view out the window would work.
I just viewed a You Tube video about how the L.A. PD has license plate scanners on patrol cars that automatically scan every car they pass and it goes into a data base to be compared to stolen vehicles etc. They can tract cars and their owners where they have been, who they are seen with etc. Good for Police but used unscrupulously could be dangerous to the public.