Officials identified the victims who were killed as Dr. Nancy Van Vessem, 61, a faculty member at Florida State University, and Maura Binkley, 21, a student there. Four women and one man suffered non-life-threatening injuries.

“There are no words to express the shock and grief we feel,” John Thrasher, the president of Florida State, said on Twitter on Saturday. He added, “To lose one of our students and one of our faculty members in this tragic and violent way is just devastating to the FSU family.”

Mr. Beierle, who the authorities said had prior military service, lived in Deltona, Fla., and had been staying at a hotel while visiting Tallahassee, the police said. He was a graduate of Florida State, where he had been arrested at least twice, once on charges of battery against women, according to records and the police.

He also had a history of expressing misogynistic and racist views. In a series of videos posted over a three-day period in August 2014, he ranted against women and minorities, the police and the Army — anyone and everyone who he believed had wronged him.

BuzzFeed News first reported on the videos.

In the videos, Mr. Beierle pontificated from a dimly lit bedroom, with an unmade bed and a pile of cardboard boxes in the background. He lamented his inability to connect with other people — from Army comrades who he said would not travel with him while stationed in Europe to women who refused to go out with him.