NEW HAVEN >> A city man is facing criminal charges after New Haven police say he shot and tried to rob another man during a drug deal that went bad in late October.

Labian McKnight, 31, was also shot and seriously hurt in the Oct. 24 altercation at the Hess gas station, 1331 State St., on the corner with Ferry Street, investigators said in court documents obtained Thursday by the Register.

McKnight was arrested Tuesday for his alleged role in the altercation and is being held in lieu of $250,000 bail.

McKnight had wounds to his back and shoulder, police said. He was rushed to Yale New Haven Hospital with critical injuries and couldn’t immediately speak to police. But he was able to check himself out of the hospital Monday, police spokesman Officer David Hartman said in a release.

Inside the gas station, police allegedly found a black-and-silver Smith & Wesson 9 mm pistol. The gun had no magazine and no round in the chamber, police said. The gun was inside a yellow mop bucket in the bathroom of the gas station’s attendant’s booth, close to where McKnight had collapsed.

Police also found a 25-year-old man lying on the ground outside a black Acura TSX with gunshot wounds to his leg and stomach. He had crashed into a van on the Ferry Street bridge just outside the Hess station’s parking lot, police said.

Investigators found a blood trail near the Acura that led to a concrete guardrail near the gas station. At the end of the blood trail, they found a black-and-silver 9 mm pistol with an empty magazine. They also found a shell casing on the driver seat of the Acura, police said.

The second man also was rushed to the hospital and detectives spoke with him in the emergency room.

The man told police he first had driven to Clinton Avenue and Dover Street to buy some marijuana. When he got there, two men in a dark-colored sedan flagged him down and asked him what he needed. The pair then got out of their vehicle and tried to get into his, he told police.

The victim said he didn’t know those men and was nervous because there were two of them. He said he told the pair to meet him at the Hess station, according to police.

At the gas station, one of the men in the dark-colored sedan — later identified as McKnight — got out and got into the victim’s car.

The victim said he went to get money from his pocket. But McKnight pulled a gun on him and told him to “run it,” which is street slang for telling someone they’re being robbed, according to police.

The victim grabbed the gun and a struggle ensued. The victim said he didn’t hear any shots but saw a flash from the gun’s muzzle, police said. He didn’t realize he’d been shot at first, he told police.

At some point during the struggle, the gun dropped, police said. The victim said McKnight then pulled out a second gun and another struggle ensued. The victim said he heard a “clicking” sound but no shots, indicating the gun was jammed, according to police.

The victim then began driving through the gas station lot and turned left onto Ferry Street, hitting a truck. McKnight then got out and ran back toward the gas station, police said. The victim kept driving and crashed into a van on the Ferry Street bridge, according to police.

The victim was able to describe the man who robbed him to police but said he didn’t know him and wasn’t sure he would be able to identify him again. He said he didn’t see the second person in the dark-colored sedan because that person was wearing a hooded sweatshirt with the hood up, according to police.

Police said video surveillance from the Hess station corroborated some of the victim’s story. They also spoke to two people who had been inside the gas station booth when the incident happened. The witnesses said they heard four or five gunshots that sounded as though they came from behind the station, police said.

The pair went outside and looked around but didn’t immediately see anything. McKnight then came toward them asking for help, saying he’d been shot, police said. He appeared to be carrying a sweatshirt and collapsed in the back doorway of the gas station booth, according to police.

Investigators also spoke with two people in the truck that got hit. They had been trying to turn onto State Street when the Acura hit them from behind.

The pair said they didn’t hear any gunshots but they did see McKnight run back toward the gas station. They also said they saw the victim get out of his Acura after it hit the van. That man fell to the ground, they said.

One of those people told police McKnight appeared to be holding something, similar to a sweatshirt or blanket, as he ran back toward the Hess station.

A detective also spoke to the driver of the van that got hit on the bridge. He also said McKnight appeared to be holding something as he went toward the Hess station.

The van driver told police the victim got out of the Acura and sat down on the guardrail of the bridge close to the spot where police found one of the guns.

Police spoke to McKnight a few days after the shooting. He had been taking prescribed oxycodone but his last dose was wearing off when they spoke to him, they said.

McKnight first said he could only remember lying on the ground unable to breathe because he had been shot, police said. He said he remembered the voice of a woman who helped him but nothing else.

Detectives said McKnight then told them a friend had been with him when he went to the gas station. He first said the friend had picked him up somewhere on Ferry Street. But then McKnight changed his story and said he had driven his friend’s car because the friend was too intoxicated, police said.

McKnight told police when he got to the gas station, a man he didn’t know had called him over to his vehicle. McKnight said that man then grabbed a gold chain McKnight was wearing around his neck and then shot him, according to police.

McKnight told police he didn’t have a gun that night. Police reminded him about video surveillance and started asking more questions about the gun, at which point he stopped talking and said he would contact his lawyer, according to the warrant.

DNA swabs taken from the guns showed McKnight’s DNA was on the gun found in the gas station bathroom, police said. The victim’s DNA was found on the gun found at the bridge, police said.

Police said McKnight doesn’t have a valid pistol permit. State records show he has previous felony convictions for escape and weapon possession charges.

Investigators found McKnight driving Tuesday on Dixwell Avenue. Hartman said they later cornered him and took him into custody at the intersection of Lodge and Level streets near Westville Manor.

McKnight, who lives on Walnut Street in New Haven, has been charged with first-degree assault, criminal use of a weapon, criminal possession of a firearm, carrying a pistol without a permit and criminal attempt to commit first-degree robbery.

McKnight is to appear at Superior Court in New Haven Nov. 22. It was not immediately clear whether he has an attorney in the case.