TADW_Elessar wroteFIBA 15.1 goes: "A shot for a field goal or a free throw is when the ball is held in a playerโs hand(s) and is then thrown through the air towards the opponents' basket."
This would surely qualify as a "shot for a field goal".
What do american rules say?
NFHS rule 4-41-2:
" A try for field goal is an attempt by a player to score two or three points by throwing the ball into a team's own basket. A player is trying for goal when the player has the ball and in the official's judgment is throwing or attempting to throw for goal..."
The definition of a pass is in NFHS rule 4-31:
"A pass is movement of the ball caused by a player who throws, bats or rolls the ball to another player."
Without seeing the play, I don't think that anyone can say for sure what the correct ruling is. The official has to determine whether A1 directed the ball toward A2 (which would be a pass) or toward team A's basket (which would be a try for field goal).
From the description given, I would probably rule that A1 was trying for goal. Since the ball hit the rim, A1 must have been directing the ball toward his/her team's basket. However, without actually seeing the play, it is hard to say for sure what the correct ruling is.