While the woman was on the phone with police, Donofrio broke a glass window on the front door "and reached inside to manipulate the doorknob," at which point the male resident fired the shot through the broken window
Regardless of what you think about gun laws, I think the resident had good reason to be concerned for his safety.