FBI directors serve for a 10 year term. Comey was confirmed by the Senate on July 29, 2013 and will be in office until July 23, 2023, unless he is impeached or resigns.
Can the president fire the head of the FBI?
They must be confirmed by the United States Senate and serve a term of office of five years, with a maximum of ten years, if reappointed, unless they resign or are fired by the President before their term ends. The current FBI Director is James B. Comey, who was appointed in 2013 by Barack Obama.
(per Google search)