China has told its citizens to immediately leave Eswatini, citing security risks in the African nation that is one of Taiwan's few remaining diplomatic allies.