It is the second time this month that the Trump administration has abruptly fired a prosecutor who was appointed by judges.