A man US officials say had a top secret security clearance has been charged with leaking classified information after being arrested in Cambodia.