Montgomery County Sheriff's Office officials said they found Claude Woodard, 29, dead on the driveway of a home in the 16000 block of Burklin Lane.
The homeowners said their adult son was home alone and asleep just before 8am when he heard someone come into the house. Officials said the man grabbed a gun and activated the panic alarm system.
The resident walked out and found Woodard in his living room, officials said. That's when he fired several shots, hitting the intruder.
Woodard, who was armed with at least two knives and a replica BB gun pistol, then ran and collapsed outside.
A pickup initially believed to be Woodard's was found abandoned under the carport of the home.
At the same time, 36-year-old Jason Doster called 911 to report his truck stolen. Officials said Doster then showed up at the house on Burklin Ln. to claim his truck.
Investigators were suspicious of Doster's story and determined Doster was actually with Woodard during the break-in.
Doster was arrested and taken to jail. Officials said he later admitted to being present when the attempted burglary occurred and when Woodard was shot. He was charged with burglary of a habitation.
An autopsy will be performed on Woodard's body. No formal charges are being pursued against the resident.