AKIPRESS.COM - A student who opened fire in the hallway of his Washington State high school Wednesday, killing one classmate and wounding three others, had grown obsessed with school shootings, a friend said.

The suspect, identified by multiple students as Caleb Sharpe, was taken into custody by police and held in juvenile jail, the Spokesman-Review reported.

The shooter brought two weapons to Freeman High School in Rockford on Wednesday, but the first one he tried to fire jammed, Spokane County Sheriff Ozzie Knezovich told New York Times. “A student walked up to him, engaged him, and that student was shot. That student did not survive.”

The victim, identified by his uncle as Sam Strahan, was reportedly friends with Sharpe.

The shooter then went on and unloaded bullets into a second-floor hallway, wounding three others before a school custodian ordered him to surrender, the sheriff said.

Knezovich said the custodian’s courageous act prevented further bloodshed, and a school resource officer arrived shortly after and took the shooter into custody, he added.

Hospital staff said the victims were all in their mid-teens, and one patient was scheduled to undergo surgery Wednesday evening.

Fifteen-year-old Michael Harper, a friend who described Sharpe as “nice and funny and weird”, told the Associated Press the suspect was obsessed with other school shootings.

The same friend said the suspect had handed out notes to his friends in the beginning of the school year, saying he planned to do something "stupid where he gets killed or put in jail."