There shall be allowed as a credit against the tax imposed by this subtitle the amount of tax withheld at source under subchapter A of chapter 3 (relating to withholding of tax on nonresident aliens and on foreign corporations).