A former National Security Agency contractor wanted by the United States for revealing highly classified surveillance programs has been allowed to leave for a “third country” because a US extradition request did not fully comply with Hong Kong law, the territory’s government said today.