Apple Inc. plugged a major flaw in its FaceTime video-chat software Thursday, and said it would pay a 14-year-old from Arizona for reporting the problem.

Grant Thompson, a freshman at Tucson’s Catalina Foothills High School, found the bug a little more than two weeks ago as he chatted with friends while playing the videogame “Fortnite.”

His...