LOS ANGELES (CBSLA.com/AP) — The nation’s two largest school systems — New York City and Los Angeles — received threats Tuesday of a large-scale jihadi attack with guns and bombs. LA reacted by shutting down the entire district, while New York dismissed the warning as an amateurish hoax and held classes.

It’s extremely rare for a major U.S. city to close all its schools because of a threat and it reflected the lingering unease in Southern California following the terrorist attack that killed 14 people at a holiday luncheon two weeks ago in San Bernardino.

“I’m not going to take the chacne with the life of a student,” LAUSD Superintendent Ramon Cortines said.

In LA, the threat came in the form of an email to a school board member. Authorities in New York reported receiving the same “generic” email and decided there was no danger to schoolchildren. Mayor Bill de Blasio concluded the threat contained “nothing credible.”

“It was so outlandish,” he said.

New York Police Commissioner William Bratton agreed. Bratton, who was police chief in Los Angeles until 2009, quipped that it looked like the sender of the threat had watched a lot of the Showtime terrorism drama “Homeland.”

The shutdown closed more than 900 public schools and 187 charter schools attended by 640,000 students across Los Angeles.

LA officials defended the move, with LA police chief Charlie Beck dismissing the criticism as “irresponsible.”

“It is very easy in hindsight to criticize a decision based on results the decider could never have known,” Beck said at a news conference.

Southern California, he added, “has been through a lot in the recent weeks. Should we risk putting our children through the same?”

Dr. Jeff Victoroff, an expert in the psychology of terror, said Cortines was put in a “genuinely impossible situation,” given the recent attacks in San Bernardino and Paris.

Jordan Tama, an assistant professor at American University specializing in U.S. counterterrorism policy, said it’s not unreasonable for authorities in different places to make different decisions based on the same information.

“There certainly is no uniform approach,” he said. “Los Angeles might make their decision based on different factors than New York and that would be the case throughout the country.”

Against the backdrop of the San Bernardino attack, it’s “just human nature” for LA authorities to be more cautious, Tama said.

The threatening 360-word email sent to the New York City school superintendent warned that schools would be attacked with pressure cooker bombs, nerve agents and machine guns. It claimed the writer and “138 comrades” would carry out the attack.

Students “at every school in the New York City school district will be massacred, mercilessly. And there is nothing you can do to stop it,” the message said.

A law enforcement official with access to the document provided the email to The Associated Press. The official was not authorized to disclose details of an ongoing investigation and provided it only on condition of anonymity.

The anonymous writer claimed to be a student at a district high school who had been bullied. The person also claimed to be a jihadist but made errors that suggested the writer was really a prankster, including spelling the word “Allah” with a lowercase “a” and making no reference to the Quaran.

The threats came in simultaneously to New York and LA school officials at about 1:20 a.m. EST Tuesday, or about 10:20 p.m. Monday in Los Angeles.

In LA, the school board member who received the threat immediately contacted school district police, Det. Rudy Perez said.

Across the country, the New York schools superintendent who received the threat was asleep and did not notice the email until 5:08 a.m. By 6:30 a.m., the message was sent to the NYPD.

An hour later, New York students began arriving at school with no knowledge of the threat. By about 9:30 a.m., investigators ruled the threat a hoax.

The decision to close Los Angeles schools was announced around the same time, at 6:25 a.m. PST.

Cortines said every campus would be searched before schools reopened.

Bratton called the closure in Los Angeles a “significant overreaction.”

“We cannot allow ourselves to raise levels of fear,” he said.

White House spokesman Josh Earnest said he would not second-guess the decisions made in Los Angeles or New York.

The sudden closure disrupted the routines of many Los Angeles families.

Lupita Vela, who has a daughter in the third grade and a son who is a high school senior, called the threat “absolutely terrifying” in light of the San Bernardino attack.

“I know the kids are anxious,” she said.

The LA schools commonly get threats, but Cortines called this one rare and said the San Bernardino attack influenced his decision to close the entire district.

The threat “was not to one school, two schools or three schools,” he said at a news conference. “It was many schools, not specifically identified. … That’s the reason I took the action that I did.”

The person who sent the threat used an “anonymizer,” which uses a proxy server to mask the origin of Internet traffic, and the email was routed through a German IP address, according to a law enforcement official briefed on the investigation. The official, who was not authorized to discuss an ongoing investigation, spoke on condition of anonymity.

Vela said she worries about talking to her kids about the threat and terrorism in general. She’s concerned about her daughter feeling secure in class.

“I don’t want this to be in the back of her head,” she said. “Who knows what it does psychologically to kids? Is this going to cause her some kind of trauma so that she’s not going to feel safe at school?”

Did the #LAUSD make the right decision to close all campuses in response to what it believed was an email threat? — CBS Los Angeles (@CBSLA) December 16, 2015

(TM and © Copyright 2015 CBS Local Media, a division of CBS Radio Inc. and its relevant subsidiaries. CBS RADIO and EYE Logo TM and Copyright 2015 CBS Broadcasting Inc. Used under license. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed. The Associated Press contributed to this report.)