OAKLAND — A man who shot himself in the stomach and blamed it on officers during a confrontation with BART police last year was convicted of various felonies Wednesday, officials said.

Corey Powell, 29, of Union City, was convicted of a felony for discharging a firearm in a grossly negligent manner during a struggle with officers at the West Oakland BART station on Sept. 1, 2015, said Alameda County Deputy District Attorney Keydon Levy.

Powell was also convicted of felony counts of being a felon in possession of a gun and carrying a concealed weapon, as well as two misdemeanor counts of resisting arrest.

Jurors deliberated for several days before reaching their verdict.

BART police said the incident began around 8 p.m. on the station’s elevated platform when two officers asked Powell to put out his cigarette. Powell gave police a fake name and then threatened to jump off the platform to commit suicide.

As Powell resisted arrest, he reached in his waistband and accidentally shot himself in the stomach with a gun tucked in his pants. Officers shocked him with Tasers shortly after.

At trial, Powell’s defense attorney argued that officers shot him, according to prosecutors.

Police recovered Powell’s gun and a bullet casing at the scene. The man underwent multiple surgeries at Highland Hospital for a single gunshot wound to his abdomen.

Powell was on parole at the time of the incident for felony burglary and strong-arm robbery. He had a no-bail warrant out for his arrest. Powell also has prior felony convictions for drugs and weapons counts.