OpenAI has cut off a developer who built a device that could respond to ChatGPT queries to aim and fire an automated rifle.