Texas principal resigns, then walks to parking lot and shoots himself