"Life surviving an initial onslaught, including those located on the side of the earth facing away from the burst, would have to contend with the potentially lethal after-effect of the depletion of the atmosphere's protective ozone layer by the burst." https://en.wikipedia.org/wiki/Gamma-ray_burst#Rate_of_occurr...
"The greatest danger is believed to come from Wolf–Rayet stars, regarded by astronomers as likely GRB candidates. When such stars transition to supernovae, they may emit intense beams of gamma rays, and if Earth were to lie in the beam zone, devastating effects may occur. Gamma rays would not penetrate Earth's atmosphere to impact the surface directly, but they would chemically damage the stratosphere."