It was an awful situation that could have turned out a lot worse if it wasn't for the quick thinking of one teacher. | 22 Words

The teacher who disarmed the shooter in the shocking Idaho school shooting has revealed that she hugged the student after removing the gun.

But, it's why she hugged her that has people shocked...

Earlier this month, on May 6th, a sixth-grade girl pulled out a handgun from her backpack at Rigby Middle School in Rigby, Idaho.

Shutterstock

She opened fire, hitting 2 fellow students and a member of staff.

The girl was swiftly disarmed by a teacher...

Shutterstock

Krista Gneiting, a math teacher at the school, was able to remove the gun from the girl.

She was then held until law enforcement arrived, Jefferson County Sheriff Steve Anderson said.

Shutterstock

Thankfully, the 3 people who were shot are expected to make a full recovery after receiving hospital treatment...

The young girl's identity still remains anonymous.

Shutterstock

But she is thought to have been charged and could face 3 counts of attempted murder, People reports.

Students inside the school were gripped by terror when they realized the repeated intercom announcements of a school lockdown were not a drill.

Unsplash

"We didn't think anything of it at first until we heard footsteps in the hallway and then we heard a police siren... and that's when we started realizing it was real," seventh-grader Madison Jensen told Idaho Falls' Local News 8.

"I texted everyone I knew."

They began comforting each other as the events unfolded inside a school where 1,500 students in sixth through eighth grades attend.

Unsplash

"We were freaking out - a few kids were crying. Some kid was sitting next to me I was trying to rub his back, make him feel better," Maren King, a seventh-grader, told Local News 8.

Moments before, Maren thought the noises were the school principal's attempt to make a lockdown drill seem more realistic.

Twelve-year-old Yandel Rodriguez recalled hearing "3 loud noises."

Unsplash

"Then there was screaming... Our teacher went to check it out, and he found blood."

It was an awful situation that could have turned out a lot worse if it wasn't for the quick thinking of one teacher.

Good Morning America via YouTube

Krista Gneiting, the teacher who disarmed the young girl.

Gneiting spoke with ABC News about the incident where she revealed that after she removed the gun from the girl's hand...

Good Morning America via YouTube

She gave her a hug.

A move that many have commended her for...

Recalling the incident to ABC News, Gneiting explained that she was preparing her students for their exams when she heard a gunshot.

Shutterstock

Upon looking out of her classroom she saw the janitor on the hallway floor, wounded.

She then heard 2 more gunfires at which point she told her class: "We're going to run to the high school, you're going to run hard, you're not going to look back, and now is the time to get up and go."

Good Morning America via YouTube

After sending her class running, Gneiting stopped to help a wounded student when she saw the armed student.

"It was a little girl and my brain couldn't quite grasp that. I just knew when I saw that gun, I had to get the gun," she said.

Shutterstock

And that's exactly what she did.

"I just walked up to her and I put my hand over her hand. I just slowly pulled the gun out of her hand and she allowed me to," she recalled.

Good Morning America via YouTube

"She didn't give it to me, but she didn't fight. And then after I got the gun, I just pulled her into a hug because I thought, this little girl has a mom somewhere that doesn't realize she's having a breakdown and she's hurting people."

"After a while, the girl started talking to me and I could tell she was very unhappy," Gneiting also explained.

Shutterstock

"I just kept hugging her and loving her and trying to let her know that we're going to get through this together."

You can watch the full interview below.

What an incredible teacher and person.