MIDVALE — A would-be carjacker was hospitalized Monday after his intended victim fought back, shooting him once in the arm and once in the torso, police said.

The attempted heist happened about 4:30 p.m. near 100 West Inglenook Drive (6985 South). Two men approached the vehicle owner, then demanded cash and ordered the man to let them take the truck he was walking toward, according to Midvale Det. Sgt. John Salazar.

The man refused, and one of his attackers pulled out a gun. A fight ensued, Salazar said.

During the scuffle, the intended victim grabbed the gun and shot his attacker twice, Salazar said. Several witnesses watched the encounter.

The man who was shot was hospitalized with non-life-threatening injuries. His accomplice was taken into custody and was being questioned by police.

The resident will likely not face charges for the shooting, Salazar said, because he was protecting himself.

Police do not believe the attempted robbery was gang-related but said the intended victim was acquainted with one of the attackers.