The resignation comes amid a chaotic stretch for the Cambridge campus, ever since the Oct. 7 Hamas terrorist attacks and the start of the Israel-Hamas war.