Mr. Kelly suggested that undocumented immigrants may not be the only threat coming across the border with Mexico, pointing to the possibility of terrorists using the same smuggling routes to infiltrate the United States.