In the United States and around the world, public concern is rising at the prospect of weapons systems that would select and attack targets without human intervention.