An Isolated Mass-gap Black Hole or Neutron Star Detected with Astrometric Microlensing