Violent threats against artificial-intelligence companies are rising and spilling over into real-world security incidents.