Homeowner shoots man during home invasion