He was found in a ravine, yelling for help with a gunshot wound. Now he’s in jail.

The man had been shot in the arm and was wearing only socks and underwear when Pierce County sheriff’s deputies found him yelling for help from a Graham ravine.

But he wasn’t the victim, according to charging papers.

Prosecutors charged the 34-year-old with first-degree assault, attempted first-degree robbery and unlawful gun possession. He pleaded not guilty at arraignment Monday, and Superior Court Judge G. Helen Whitener set bail at $1 million.

Court records give this account:

The man asked a driver at a gas station for a ride home Sept. 7. He was having trouble getting an Uber driver, he said, and offered $50 if the stranger would give him a lift.

The driver agreed, but when he pulled over to drop the man off in the area of 242nd Street Court East, his passenger pulled out a gun.

“Sorry, man. I have to do this,” the robber said, before he told the driver to get out.

But it turned out the driver also had a gun, which he grabbed out of the trunk. The two exchanged gunfire. The robber was hit, and ran off — ending up in the ravine where deputies found him.

He’d used some of his clothing as a tourniquet, and investigators found other bloody clothing, knives and money nearby.

Alexis Krell: 253-597-8268, @amkrell