OpenAI, the pioneer of widely used tools that generate specialized digital content from simple prompts, ousted its co-founder and Chief Executive Officer Sam Altman and lost another senior executive after a series of escalating disagreements over fundamental questions at the heart of artificial intelligence: How to keep the technology safe while also making money from it.