It was neither denying a goalscoring opportunity because the attacker wasn't in control of the ball, nor endangering an opponent since he mostly got the ball. Yellow at worst. And then they take the free kick 5 yards ahead of where the incident took place. Joke.
Getting the ball...mostly or totally....doesnt rule out endangering an opponent though. Thats not how it works.