Constraining spectral models of a terrestrial gamma-ray flash from a terrestrial electron beam observation by the Atmosphere-Space Interactions Monitor