Lawmaker resigns after saying gays should be sent to an isla