A Keller ISD student was taken into custody Tuesday for carrying a loaded gun into a middle school.

A security officer was tipped off that the student claimed to have ammunition in his backpack at Timberview Middle School, Fort Worth police spokesman Brad Perez said.

The officer checked the 15-year-old's bag and found a .45-caliber handgun and ammunition.

No threats were made, and there were no reports that the gun was displayed at the school.

It's unknown whether the student told anyone he was bringing the gun to school. He posted a picture of himself with the gun on social media but later said it was a toy gun, according to the police report.

The teen was taken into custody for bringing a weapon to a place where it was prohibited. He was taken to juvenile detention and a parent was contacted.