Technical foul on A1 for not giving a dead ball directly to the official. No 2nd free throw for A1. B gets two shots (maybe four, that depends) and the ball.
Seriously, the official announced two shots, therefore this ball was not live when the shooter caught it. Since the ball was not live, this basket does not count, and go to the arrow.