HUDSON (CBSMiami/AP) — A security guard quickly defused a potentially dangerous situation after learning an eight-year-old boy had brought a loaded gun to his elementary school.

Pasco County Sheriff’s Captain Chris Beaman said that everyone at Hudson Elementary School did what they were supposed to do when a student told the school security officer another child had a gun.

READ MORE: Wong Leads Brewers To 7-3 Win Over The Marlins

Beaman says the officer went to “shoo” away a group of boys in a bathroom. One child stayed behind and told the guard a boy was showing off a gun in his backpack.

“I saw the backpack and I said what’s in there and he responded and said it’s a gun. And I said is it real and he said yes,” said Blake Johson.

Blake said the boy pointed the gun at the wall of the bathroom and threatened to shoot him if he told anyone. That wasn’t enough to stop Blake who told the security guard what had happened.

READ MORE: Varieties Of Starburst, Skittles & Life Savers Gummies Recalled

The guard went to the boy’s classroom, took the backpack and escorted the child to the principal’s office.

No one was injured.

Beaman says the child wasn’t arrested but they are investigating the case.

MORE NEWS: Rickenbacker Causeway Shut Down After Vehicle Hits & Kills 2 Cyclists

(© Copyright 2019 CBS Broadcasting Inc. All Rights Reserved. The Associated Press contributed to this report.)