Homeowner warns burglar, then shoots him