Karim Khan, the chief prosecutor of the International Criminal Court, faced an accusation of sexual harassment.