Two years ago
Shot bobbles up and out
The ball is "poised" on the rim, "probably" moving outwards..
Defending player swipes at the ball, hitting it across and downwards.
Ball, on a slight downwards trajectory strikes the opposite side of the hoop and bounces back out and clear.
Defending player is called for a goal-tend.
Not in the NBA, so presumably under FIBA rules.