Brentwood, Long Island school officials say an 8-year-old boy brought a loaded pistol to school that was quickly discovered by his teacher.

The boy had the gun in his desk and the teacher overheard him talking about it. District spokesman Rick Belyea says the teacher took the gun from the desk and hand-delivered it to the assistant principal's office Wednesday.

The boy was taken to a Suffolk County precinct and to Family Court and has since been released to his family.

Suffolk county officials are investigating. It's not clear why the third-grader brought the gun to school, though it's believed it came from his home. It's not clear what his punishment would be.

There were no injuries and no threat to students at Brentwood North Elementary School. More than 900 students attend.