A French scientist has apologized after tweeting a photo of a slice of chorizo, claiming it was an image of a distant star taken by the James Webb Space Telescope.