Former teacher surrenders to police