I was going to say that it sounds as if he might have been confused about A having team control during a throw-in, and ruled that you can't have free throws no matter what kind of foul B commits.
But then you posted the second play. Now it sounds as if he doesn't know the penalty for an intentional foul.