Two people died and a third was injured Friday after confronting a man yelling "anti-everything slurs" on a Portland commuter train, police said.

The alleged attacker, Jeremy Joseph Christian, 35, was aboard a Metropolitan Area Express train Friday afternoon and yelled "various remarks that would be best characterized as hate speech toward a variety of ethnicities and religions," the Portland Police Bureau said in a news release.

A Portland police spokesman characterized the remarks as "a gamut of anti-Muslim and anti-everything slurs," CNN reported.

At least two of the victims attempted to step in and calm Christian down. But the 35-year-old stabbed them and one other person before leaving the train.

One victim died at the scene and a second died at the hospital. The third was being treated for injuries police said were not life-threatening.

Witnesses at the scene said two young women who they believed were Muslim were on the train when the attack took place. Police said one of the women was wearing hijab.

Law enforcement hasn't yet spoken with either of the women, who left before police arrived at the scene.

Officers arrested Christian, and he was charged with two counts of aggravated murder, one count of attempted murder, two counts of intimidation in the second degree and one could of being a felon in possession of a restricted weapon.