Is there any plausible astronomical source of energy that could wipe out humanity without rendering the planet inhabitable?
The cockroach and the tardigrade can withstand just about anything.  Next, any radiation blast consisting of wavelengths reasonably attenuated with water wouldn't affect, directly at least, all the deep-sea creatures.