Google’s Gemini AI chatbot has caused controversy by responding with a disturbing message to a US student researching a project.