Last year , the head of the agency , Maria del Pilar Hurtado , resigned after it was revealed that agents were ordered to spy on opposition leaders .