Beijing has slammed derogatory remarks of an American official over how China has managed the coronavirus outbreak.