I wish I was there.
What we know:
i) player A attemps a shot
ii) he is fouled
iii) ball in hands when horn goes
Let's conclude:
a) shooting motion (from (i))
Let's assume:
1) he's fouled before the horn goes
Then:
Cancel the basket because he did not release the ball in time. Award two shots for the shooting foul.
..Mike