A young gunman opened fire at a public school near Spokane, Wash., on Wednesday morning, killing one student and wounding three others before being caught, according to reports.

All the victims were admitted to Providence Sacred Heart Medical Center and Children’s Hospital in Spokane and were expected to survive, official said.

The dead student was a sophomore boy. The three wounded were all girls, witnesses at Freeman High School in Rockford told the Spokesman-Review newspaper.

The shooting reportedly happened in a hallway outside of a biology classroom.

“I was putting my backpack away and I heard a loud pop, and I turned around. He was walking around,” said freshman Elisa Vigil, 14, told the Spokane newspaper.

“He had his pistol. His face was completely passive. He shot someone in the head. I crouched down in the hall. I looked up and a girl screamed, ‘Help me, help me, help me.’ The hall was empty. She was shot in the back. I looked to my right, and there was a boy and he was shot in the head.”

The suspect was arrested but details of how he was caught were not immediately known.

“The shooter is in the back seat of a patrol car right now,” Sheriff Ozzie Knezovich said at the scene, the Seattle Times reported.

The gunman had told friends he had planned to do “something stupid,” according to KXLY-TV.

“He said that he was going to do something stupid that might get him killed or in jail,” the shooter’s pal said. “He was carrying a duffel bag. I think the color was black.”

A gun was inside that bag.

“He pulled it out and just started shooting,”the friend said.

Spokane public schools posted a tweet shortly before 2 p.m. EST that a lockdown was in effect near Freeman HS in Rockford.

At least five ambulances and a LifeFlight helicopter were sent to the scene, the newspaper reported.

Annie Baxter, whose two daughters attend a middle school across the street from the high school, told the Spokesman-Review that kids were running into buildings when she pulled up at about 10:15 a.m. local time.

Classes were about to begin because it was a “late start” day, Baxter said.

“They did a modified lockdown drill yesterday,” she said. “I thought it was weird because they wouldn’t do (a drill) two days in a row.”

Baxter told the paper she was being held in a multipurpose room with about 30 other people in Freeman Elementary School.

She said she was told that at least one person was shot but was expected to survive.

“I saw someone carrying a gurney into the elementary school but I didn’t know why,” she said.

In addition to the Freeman school district, the Central Valley and Mead districts were on lockdown due to the shooting, KHQ reported.

Freeman HS has 331 enrolled students.

Mom Cheryl Moser said her freshman son called her from a classroom shortly after gunfire erupted.

“He called me and said, `Mom there are gunshots.’ He sounded so scared. I’ve never heard him like that,” Moser said. “You never think about something happening like this at a small school.”