Nick Kyrgios was on the receiving end of a hostile reception at the Mexican Open in his last-16 match against Rafael Nadal.