A 17-year-old boy in France admitted to fatally stabbing a fellow teen after a row sparked by a girl rejecting him on TikTok, prosecutors said.