Student shoots self in patrol car at school