Gamma-Ray Emission Produced by r-process Elements from Neutron Star Mergers