She is the second senior figure to leave the online giant’s ethics unit over the past few months.