Now playing
01:40
A child leads an active shooter training in this PSA video
TOKYO, JAPAN - JULY 23: General view inside the stadium as fireworks go off while Naomi Osaka of Team Japan lights the Olympic cauldron with the Olympic torch during the Opening Ceremony of the Tokyo 2020 Olympic Games at Olympic Stadium on July 23, 2021 in Tokyo, Japan. (Photo by Laurence Griffiths/Getty Images)
Laurence Griffiths/Getty Images
TOKYO, JAPAN - JULY 23: General view inside the stadium as fireworks go off while Naomi Osaka of Team Japan lights the Olympic cauldron with the Olympic torch during the Opening Ceremony of the Tokyo 2020 Olympic Games at Olympic Stadium on July 23, 2021 in Tokyo, Japan. (Photo by Laurence Griffiths/Getty Images)
Now playing
02:22
Tokyo 2020 Games officially underway after yearlong delay
Now playing
07:51
Smerconish: Don't punish the vaccinated
CNN Weather
Now playing
01:43
Flash flooding continues to threaten the Southwest this weekend
Gov. Kay Ivey gives the State of the State Address to a joint session of the Alabama Legislature on Tuesday, Feb. 4, 2020, in the old house chamber of the Alabama State Capitol in Montgomery, Ala. (AP Photo/Vasha Hunt)
Vasha Hunt/AP
Gov. Kay Ivey gives the State of the State Address to a joint session of the Alabama Legislature on Tuesday, Feb. 4, 2020, in the old house chamber of the Alabama State Capitol in Montgomery, Ala. (AP Photo/Vasha Hunt)
Now playing
01:00
Alabama governor: It's time to start blaming unvaccinated folks
Pool
Now playing
02:06
WaPo: This is what Trump's PAC is spending its money on
TMFPD
Now playing
00:48
Crew battling Tamarack Fire makes narrow escape out of fire and flames
Getty Images
Now playing
01:55
'Almost giddy': Author describes Trump during Capitol riot
CNN/KTRK
Now playing
03:07
Keilar rolls the tape on Ted Cruz's 'ironic' message about political stunts
CNN
Now playing
03:06
Nurse says patients in ICU with Covid-19 begging for vaccine
AFPTV
Now playing
01:03
See protesters outside Olympics opening ceremony
Now playing
04:56
Brianna Keilar pushes back on city leader: That's anti-science
US Speaker of the House, Nancy Pelosi, Democrat of California, speaks at her weekly press briefing on Capitol Hill in Washington, DC, on July 22, 2021. (Photo by Brendan SMIALOWSKI / AFP) (Photo by BRENDAN SMIALOWSKI/AFP via Getty Images)
BRENDAN SMIALOWSKI/AFP/AFP via Getty Images
US Speaker of the House, Nancy Pelosi, Democrat of California, speaks at her weekly press briefing on Capitol Hill in Washington, DC, on July 22, 2021. (Photo by Brendan SMIALOWSKI / AFP) (Photo by BRENDAN SMIALOWSKI/AFP via Getty Images)
Now playing
01:21
Pelosi explains why she rejected GOP lawmakers from January 6 committee
Getty Images
Now playing
00:54
Nick Jonas injured during NBC Olympics special
Valerie Gordon
Now playing
00:59
Watch cattle flee as California wildfire rages
Fox News
Now playing
02:31
Tucker Carlson insults Capitol police officer
A boy receives a dose of the Pfizer/BioNTech Covid-19 vaccine at the Clalit Healthcare Services in the Israeli city of Holon near Tel Aviv on June 21, 2021, as Israel begins coronavirus vaccination campaign for 12 to 15-year-olds. - Israel is now urging more 12- to 15-year-olds to be vaccinated, citing new outbreaks attributed to the more infectious Delta variant. (Photo by JACK GUEZ / AFP) (Photo by JACK GUEZ/AFP via Getty Images)
JACK GUEZ/AFP/AFP via Getty Images
A boy receives a dose of the Pfizer/BioNTech Covid-19 vaccine at the Clalit Healthcare Services in the Israeli city of Holon near Tel Aviv on June 21, 2021, as Israel begins coronavirus vaccination campaign for 12 to 15-year-olds. - Israel is now urging more 12- to 15-year-olds to be vaccinated, citing new outbreaks attributed to the more infectious Delta variant. (Photo by JACK GUEZ / AFP) (Photo by JACK GUEZ/AFP via Getty Images)
Now playing
02:10
CDC warns of 'pandemic of the unvaccinated'
CNN —  

A New Jersey elementary school was placed on lockdown this week after a man was found in the parking lot with a gun and multiple rounds of ammunition, authorities said.

Officers found the suspect Thursday afternoon in the front seat of his SUV at Tamaques Elementary School in Westfield, according to the Union County prosecutor’s office. He was holding a loaded .45-caliber handgun, it said in a statement Friday.

Classes had let out for the day, but the precautionary lockdown went into effect because after-school activities were still going on, CNN affiliate News12 reported.

The man, later identified as Thomas J. Wilkie, 46, of Bear, Delaware, had two additional loaded clips of ammunition on him and 130 more rounds in his vehicle’s trunk, the prosecutor’s office said.

Police acted on a tip from the New Castle police in Delaware that said Wilkie was on his way to the school and may be armed, according to the statement.

The suspect has been charged with second-degree unlawful possession of a weapon, fourth-degree possession of hollow-point bullets and fourth-degree trespassing on school grounds, according to the Union County prosecutor’s office.

On Monday, Wilkie indicated on Facebook that he is homeless and living out of his car.

“To all my FB friends out there I’m currently living in my car and have no where to go if I could surf someone’s couch for a safe place to stay I would be eternally grateful,” the Facebook post says. “I guess I’ll see who my friends really are and who chose to step up and help me I’m no trouble and no I’m not on drugs or any of that s**t.”

A post the following day says: “3am and can’t sleep with these junkies winos pimps and whores bothering me in my car all night! Ugh homelessness sucks!”

Wilkie is being held in the Union County Jail, pending his first hearing Wednesday.

Convictions on second-degree criminal charges are punishable by five to 10 years in state prison, according to officials.

Information on his attorney was not immediately available.

CNN’s Evan Simko-Bednarski contributed to this report.