In a nationally televised address , Mr. Fox said he had accepted the resignation of Attorney General Rafael Macedo de la Concha , who oversaw the prosecution of the politician , Mayor Andres Manuel Lopez Obrador of Mexico City , and thus became one of the most polarizing figures in the government .