A University of California at Merced student was shot and killed by police on Wednesday morning, after he went on a stabbing spree at the school.

According to the Merced Sun-Star, authorities have identified 18-year-old freshman Faisal Mohammad as the student who stabbed four people before being killed by campus police that day.

Merced County Sheriff Verne Warnke said an investigation is underway to determine the motive of the attack. The FBI has been brought in on the case as well.

Mohammad's victims included two students, a school advisor and a construction worker. They all suffered non-life-threatening injuries.

Two of the victims were taken by helicopter to a nearby hospital for treatment. The university said that the school advisor received surgery for a collapsed lung and is now recovering, while one student remains hospitalized.

The university cancelled classes for Wednesday and Thursday.

"Today is a sad and tragic day in UC Merced's short history," said campus Police Chief Albert Vasquez, via the Washington Post.

Not much is known of Mohammad, other than that he was a first-year chemical science and engineering major from Santa Clara.

Suite mate Andrew Velasquez described Mohammad as a quiet loner.

"Didn't talk much," said Velasquez to KFSN-TV. "And I never saw him walk with anybody."

According to investigators, the incident began when Mohammad stabbed a student in a second floor classroom with a hunting knife. Bryan Price, a 31-year-old construction worker, heard the commotion and went to intervene. Mohammad then turned on Price, stabbing him and escaping to attack two others before police shot him.

Price told the Sun-Star that Price looked like he was "having fun," but that he also looked scared.

"His eyes, I could see fear in his eyes," said Price. "He was smiling."

Sheriff Warnke praised Price's actions, calling him a hero.

"Without him, the first victim could have been a lot worse off, or even dead," he said.