First measurement of the forward-backward asymmetry in bottom-quark pair production at high mass