You need to call AA and ask them to remove the miles. After that is done, you can ask BA for the credit.
However I've heard that recently, if you have AA status, AA will not accept to remove the miles, claiming that you have made use of your status (for lounge access or such things).
Good luck.