(a)
No person may ship or transport any firearm or ammunition in interstate or foreign commerce, or
receive any firearm or ammunition which has been shipped or transported in interstate or foreign commerce, or possess any firearm or ammunition in or affecting commerce, who:
[(1) thru (4) omitted]
(5)
Being an alien—
(i) Is illegally or unlawfully in the United States; or
(ii) Except as provided in paragraph (f) of this section,
has been admitted to the United States under a nonimmigrant visa: Provided, That the provisions of this paragraph (a)(5)(ii) do not apply to any alien who has been lawfully admitted to the United States under a nonimmigrant visa, if that alien is—
(A) Admitted to the United States for lawful hunting or sporting purposes or is
in possession of a hunting license or permit lawfully issued in the United States;
(B) An official representative of a foreign government who is either accredited to the United States Government or the Government's mission to an international organization having its headquarters in the United States or is en route to or from another country to which that alien is accredited. This exception only applies if the firearm or ammunition is shipped, transported, possessed, or received in the representative's official capacity;
(C) An official of a foreign government or a distinguished foreign visitor who has been so designated by the Department of State. This exception only applies if the firearm or ammunition is shipped, transported, possessed, or received in the official's or visitor's official capacity, except if the visitor is a private individual who does not have an official capacity; or
(D) A foreign law enforcement officer of a friendly foreign government entering the United States on official law enforcement business...
[several sections skipped]
(f) Pursuant to 18 U.S.C. 922
(3), any individual who has been admitted to the United States under a nonimmigrant visa may receive a waiver from the prohibition contained in paragraph (a)(5)(ii) of this section if the Attorney General approves a petition for the waiver.