US Open champion Andy Murray was beaten in three sets by Jerzy Janowicz in the third round of the Paris Masters.