High spectral resolution measurements of a solar flare hard X-ray burst