Andy Murray was ousted from the BNP Paribas Open in the quarter-finals after Juan Martin Del Potro fought back from a set down.