An author has been accused of writing his debut novel using generative AI, leading to the book being pulled from a French literary prize.