Study of Jet Quenching with Z+jet Correlations in Pb-Pb and pp Collisions at sqrt(s_NN) = 5.02 TeV