Mr Pandey's resignation came in the midst of a petition in the apex court challenging the extension given to him on the grounds that he was a top accused in the controversial fake encounter of Ishrat Jahan and three others.