The Pasadena Police Department is investigating the shooting that happened around 12:30 a.m. Tuesday at Miller Intermediate School. The teen was suspected of burglarizing an on-campus building when he encountered the officer. The officer told investigators that the teen, who was wearing dark clothing, appeared to have a gun.

The teen, who is an eighth-grader at the school, was wounded in the upper chest and rushed to a nearby hospital. He was in critical but stable condition Tuesday.

Neither the boy nor the officer have been identified.

A school district official said there was a sense of relief that the young boy would make a full recovery.

Superintendent Kirk Lewis said it appears the boy had broken a window at the building, which activated the alarm. Electronics, such as computers, are in the building.

“It’s tragic for everyone, especially the young man,” Lewis told the Chronicle Tuesday. “We just hope everybody recovers. The officer is pretty distraught.”

The Pasadena ISD police department is in charge of the burglary investigation, but it is considered a low priority, the official said.