First, let's clarify. This would be an intentional technical foul for dead-ball contact.
Once A1 has his fifth foul, he can no longer be a player and can, therefore, not shoot FT's. If A's FT's were from a personal foul, his replacement shoots. For the T, any player (including the sub) can do so.