A top FBI lawyer who was criticised on Fox News for his role in the investigation of Michael Flynn has resigned after being asked to do so by senior figures