An exact solution of the Jackiw-Rebbi equations for a fermion-monopole-Higgs system