Updated

Police used a stun gun on a 6-year-old boy in his principal's office because he was wielding a piece of glass and threatening to hurt himself, officials said Thursday.

The boy, who was not identified, was shocked with 50,000 volts on Oct. 20 at Kelsey Pharr Elementary School.

Principal Maria Mason called 911 after the child broke a picture frame in her office and waved a piece of glass, holding a security guard back.

When two Miami-Dade County police officers and a school officer arrived, the boy had already cut himself under his eye and on his hand.

The officers talked to the boy without success. When the boy cut his own leg, one officer shocked him with a Taser (search) and another grabbed him to prevent him from falling, police said.

He was treated and taken to a hospital, where he was committed for psychiatric evaluation.

"By using the Taser, we were able to stop the situation, stop him from hurting himself," police spokesman Juan DelCastillo told The Miami Herald.

The case was under review.