Khaled El-Enany, the agency’s first director-general from an Arab state, will lead the UN’s education, science and cultural organization through one of its most severe tests.