Study of high-energy gamma rays from relativistic nucleus-nucleus collisions