The company's CEO had concerns about the technology being used for mass surveillance of Americans or autonomous weapons.