A Pakistani man with alleged ties to Iran has been charged in the United States in connection with a foiled plot to assassinate a US politician or government officials, the Department of Justice says.