CHICAGO — Police have arrested a man in connection to a shooting Wednesday at the UIC Blue Line station.

Patrick Waldon, 31, has been charged with aggravated battery, armed robbery and being an armed habitual criminal, police said. He was scheduled to appear in Bond Court on Thursday.

Waldon was taken into custody Wednesday night, Chicago Police spokesman Anthony Guglielmi said in a tweet early Thursday.

“To those who think they can commit crime on @cta, think again,” Guglielmi tweeted. “You’re on camera and you will be caught.”

The shooting happened at 10:45 a.m. Wednesday: A 30-year-old man was getting off a train in the 400 block of South Halsted Street when an unknown man grabbed his backpack. As the victim pulled away, the man fired one shot in the victim’s back, police said.

The victim was taken to Stroger Hospital in serious condition, police said.

At a press conference afterward, Patrol Bureau Chief Fred Waller said there was a brief verbal exchange before the victim was shot. It’s unclear whether the two knew each other, but it appeared to be a robbery, Waller said.

“It seems like this person was targeted …. I don’t think it was random,” Waller told reporters.

Police have videos and photos and were speaking with witnesses, Waller said.