Low energy gamma radiation in the atmosphere during active and quiet periods on the Sun