A Central Texas high school basketball coach ended a losing game by kicking a ball in the direction of his team's opponents, and it was caught on camera.

The Whitney Wildcats played the Robinson Rockets at home Friday night.

The game was tied 50-50 with just 1.3 seconds to play.

As the Rockets inbounded the ball, a player was immediately fouled as time ran out.

The Robinson player went to the free throw line to shoot the foul shots.

He made one giving Robinson the win, 51-50.

What happened next shocked many in the gymnasium.

Whitney Head Coach Troy Doyle was caught on camera kicking the ball toward the Rockets team and immediately tempers flared.

Several players moved toward the coach and the coach moved towards them.

Rockets Center Kayne Follender said the coach even used profanity.

"I've been a varsity player for three years. I'm graduating early and I've started every year of my high school career. I've never seen a coach act this way before. "

Monday, Whitney ISD Superintendent Gene Solis said he couldn't comment on what kind of discipline if any Coach Doyle would face and that the district is handling the situation "in house."

Solis did confirm Doyle would not be coaching the Wildcats when they play at McGregor Tuesday night.