There has been a significant shake-up within the FBI as one of its top officials has been forced out.