There is growing concern about how artificial intelligence could be used by the US military.