A 34-year-old man was killed and five other people, including two teenagers, were wounded on Monday in a shooting at the Mount Eden Avenue subway station in the Bronx during the evening rush hour, the police said.

The wounded people, who ranged in age from 14 to 71, were in stable condition and were expected to recover, the police said.

Police officials said the shooting erupted amid a dispute between two groups of teenagers who were on a northbound No. 4 train at about 4:30 p.m.

When the train arrived at the Mount Eden station and people began to get off, someone involved in the dispute fired a shot, Michael M. Kemper, the Police Department’s chief of transit, said at a news conference. The gunfire continued as riders spilled onto the platform and ran for cover, Chief Kemper said.

Officers responding to several 911 calls about gunfire at the station found the six victims on the northbound platform, the chief said. In addition to the man who was killed, those who were shot included a 14-year-old girl, a 15-year-old boy, a 29-year-old woman, a 28-year-old man and a 71-year-old man.