The ultimatum was unusual for the FBI and suggested that President Donald Trump is purging leadership at an agency he has harshly criticized.