The firing of an editor who commented publicly about the Israel-Hamas war has triggered a series of resignations at a scientific journal and exposed a rift among some in the academic community about free speech and whose voices are elevated in science.