Elon Musk and tech leaders have signed a letter addressed to the United Nations denouncing autonomous weapons.