The Press of Atlantic City and NJ.com report that the resignation was announced by the board of education's attorney but was prohibited by state law from publicly discussing.
The U.S. Secret Service said it is aware of "the incident involving comments made online by a teacher in Egg Harbor Township, New Jersey" and said all threats are taken seriously.