The young black bear actually wandered between the campuses of Ramon Garza Elementary School and Sierra Middle School Thursday morning.
The bear was relatively small, weighing 100 to 150 pounds. Despite its size, the elementary school was put on lock-down because there were many students outside for an end of the year festival.
The wild animal was only on campus for about a minute, running across the playground and climbing a fence. After leaving campus the bear wandered into an apartment complex off of Edison Highway. There, it was tased and tranquilized by Kern County Animal Control and the Department of Fish and Game.
The bear was later released into the wild after being checked for injuries at animal control.
According to the Department of Fish and Game, the bear probably followed the river into town looking for food and water.