BRUNSWICK, Ga. — A homeowner has fatally shot a masked burglar only to learn the burglar was a longtime friend.

Ezekiel Wiley says he fired all six bullets at a man who crawled through a busted kitchen window, armed with a screwdriver Wednesday. Wiley said he couldn’t see the burglar’s face.

Several hours later Wiley learned the burglar was William Bernard Stafford, a friend of 30 years. Authorities said Stafford had a drug history and several convictions.

Georgia law allows homeowners to use deadly force to protect themselves and their property.