US National Counter-terrorism Centre director Joe Kent submitted his resignation to President Donald Trump in an open letter posted on X.