A man wielding a hunting knife was shot by a San Bernardino homeowner after he found the intruder standing inside his living room early Saturday morning, police said.

San Bernardino Police responded to the home of a 60-year-old man in 1400 block of Sheridan Road.

The man told police he had gone out to his backyard and when he went back inside the house he found a man standing in his living room with a large hunting knife.

Police later identified the man as Timothy Mackay, 37, of San Bernardino.

Police said Mackay refused to leave even after several requests by the homeowner, and then began waving the knife, advancing toward the man.

The homeowner got his handgun and ordered Mackay to leave, who refused, police said.

The homeowner shot Mackay in the abdomen and then called 911, police said.

When police arrived, they said Mackay was still armed with the hunting knife.

Mackay was transported to a local hospital and will face charges once he has recovered, police said. Police believe Mackay is a transient in the area.