Tech billionaire Bill Gates warned that artificial intelligence had the potential to kill a billion people in the wrong hands — as he joined the call to put safety restrictions on the technology.