Unfortunately, you will have to book the pet and pay the fee on both airlines separately.
Call both airlines as far in advance as possible and advise then you'll be traveling with a pet, as space is limited.
And plan for enough time at the connection point where you transfer from AS to AA, as you likely have to queue at a (transit) counter to check in the pet and pay the fee.