The collision of two neutron stars, seen in an artist’s rendering, created both gravitational waves and gamma rays. Researchers used those signals to locate the event with optical telescopes.