Turkish Spymaster Fidan Resigns to Contest General Election