Iran 's intelligence minister says two Americans who were detained for illegally crossing the country 's border should be tried on charges of spying .