Hard X-ray and gamma-ray observations of an electron dominated event associated with an occulted solar flare