Kash Patel was on Friday sworn in as the ninth director of the federal bureau of investigation, after the US Senate confirmed his status with a close vote.