Follow CBSPHILLY Facebook  | Twitter

DELAWARE COUNTY, Pa. (CBS) — A foreign exchange student who threatened to attack his Delaware County high school pleaded guilty in court on Tuesday to a federal ammunition charge.

READ MORE: 30 Years Later, Search For Joy Hibbs' Killer Continues With New Reward Posted For Information

An-Tso Sun, 18, is a Taiwanese national.

Credit: (CBS3)

He was formally charged with possessing ammunition while being in the United States on a non-immigrant visa.

READ MORE: 17 People Injured In Crash Involving SEPTA Bus After Car Runs Red Light, Officials Say

Sun threatened a shooting at Monsignor Bonner-Archbishop Prendergast High School on May 1.

Authorities say they found over 1,600 rounds of ammunition and a homemade pistol in his bedroom.

MORE NEWS: Arrest Warrant Issued For Contractor Ronald Williams Accused Of Scamming At Least 10 People Using Nextdoor App

Sun’s sentencing is scheduled for Dec. 11.