Peru Attorney General Pedro Chavarry resigned on Tuesday after a public outcry over his handling of the high-profile corruption investigation involving Brazilian builder Odebrecht.