A pedestrian was shot after a fight inside of Penn Station spilled out onto the street outside on Monday night, NYPD Commissioner Dermot Shea said.

A man who may have been wearing a red backpack pulled out a gun and fired near West 31st Street and Seventh Avenue, missing his target and hitting a bystander in the leg around 5:40 p.m., Shea said.

The victim, a man believed to be in his late 50s, was taken to the hospital, police said. He’s expected to recover. The man has been in New York for the last several months for work.

He was supposed to meet his wife on Monday night, but he was alone when he was shot.