WALHALLA, S.C. (AP) — Authorities say a homeowner who was holding a gun on someone who was ordered not to return to his South Carolina property was shot and killed by the suspect.

Oconee County Sheriff's spokesman Jimmy Watt says 24-year-old Tyler Broome was also shot around 3:35 a.m. Wednesday at the Walhalla home and is in the hospital.

Watt says Broome was put on a trespass notice to stay away from the homeowner's property about eight months ago. He did not give details why.

Oconee County Coroner Karl Addis said in a statement that 63-year-old Robert McDowell died about two hours later at the hospital.

Broome is charged with murder, trespassing and a weapons charge. It wasn't known if he had a lawyer.