Principal resigns after outrage