Multimessenger observations of a flaring blazar coincident with high-energy neutrino IceCube-170922A