new york isis attack rochester perez sot lead_00001802.jpg
Monroe County Sheriff's Office
new york isis attack rochester perez sot lead_00001802.jpg
Now playing
01:36
Feds: N.Y. man planned ISIS attack on New Year's Eve
WJW
Now playing
01:45
Man accused of plotting attack at parade
Armed police  operate in Saint-Denis, a northern suburb of Paris, Wednesday, Nov. 18, 2015. Police say two suspects in last week's Paris attacks, a man and a woman, have been killed in a police operation north of the capital. Two police officers have been injured in the standoff. Police have said the operation is targeting the suspected mastermind of last week's attacks, believed to be holed up in an apartment in Saint-Denis with several other heavily armed suspects. (AP Photo/Francois Mori)
Francois Mori/AP
Armed police operate in Saint-Denis, a northern suburb of Paris, Wednesday, Nov. 18, 2015. Police say two suspects in last week's Paris attacks, a man and a woman, have been killed in a police operation north of the capital. Two police officers have been injured in the standoff. Police have said the operation is targeting the suspected mastermind of last week's attacks, believed to be holed up in an apartment in Saint-Denis with several other heavily armed suspects. (AP Photo/Francois Mori)
Now playing
01:42
What to do in the event of a terror attack
psychology of terror sanjay gupta nws orig_00002811.jpg
ISIS
psychology of terror sanjay gupta nws orig_00002811.jpg
Now playing
01:25
The psychology of terror
LAS VEGAS, NV - OCTOBER 02:  An ambulance leaves the intersection of Las Vegas Boulevard and Tropicana Ave. after a mass shooting at a country music festival nearby on October 2, 2017 in Las Vegas, Nevada. A gunman has opened fire on a music festival in Las Vegas, leaving at least 20 people dead and more than 100 injured. Police have confirmed that one suspect has been shot. The investigation is ongoing. (Photo by Ethan Miller/Getty Images)
Ethan Miller/Getty Images
LAS VEGAS, NV - OCTOBER 02: An ambulance leaves the intersection of Las Vegas Boulevard and Tropicana Ave. after a mass shooting at a country music festival nearby on October 2, 2017 in Las Vegas, Nevada. A gunman has opened fire on a music festival in Las Vegas, leaving at least 20 people dead and more than 100 injured. Police have confirmed that one suspect has been shot. The investigation is ongoing. (Photo by Ethan Miller/Getty Images)
Now playing
02:46
Is it an act of violence or terror?
australia terror plot cabrera kayyem segment_00002218.jpg
Seven News
australia terror plot cabrera kayyem segment_00002218.jpg
Now playing
01:39
Four arrested in alleged airplane terror plot
Washington, UNITED STATES:  The terrorist threat advisory is seen 10 August, 2006 at Ronald Reagan National Airport, in Washington, DC. After Britain said 10 August it had thwarted a plot to wreak "mass murder" by the simultaneous mid-air bombings of planes to the United States, the US raised the threat level to "severe" or "Red" for all commercial flights flying from Britain to the United States, and "high" or "Orange" for all commercial aviation operating in the United States, including international flights.  AFP PHOTO / TIM SLOAN  (Photo credit should read TIM SLOAN/AFP/Getty Images)
TIM SLOAN/AFP/Getty Images
Washington, UNITED STATES: The terrorist threat advisory is seen 10 August, 2006 at Ronald Reagan National Airport, in Washington, DC. After Britain said 10 August it had thwarted a plot to wreak "mass murder" by the simultaneous mid-air bombings of planes to the United States, the US raised the threat level to "severe" or "Red" for all commercial flights flying from Britain to the United States, and "high" or "Orange" for all commercial aviation operating in the United States, including international flights. AFP PHOTO / TIM SLOAN (Photo credit should read TIM SLOAN/AFP/Getty Images)
Now playing
01:11
What FBI director wants Americans to know about terror
Investigators inspect a truck following a shooting incident in New York on October 31, 2017. 
Several people were killed and numerous others injured in New York on Tuesday when a suspect plowed a vehicle into a bike and pedestrian path in Lower Manhattan, and struck another vehicle on Halloween, police said. A suspect exited the vehicle holding up fake guns, before being shot by police and taken into custody, officers said. The motive was not immediately apparent.

 / AFP PHOTO / Don EMMERT        (Photo credit should read DON EMMERT/AFP/Getty Images)
DON EMMERT/AFP/Getty Images
Investigators inspect a truck following a shooting incident in New York on October 31, 2017. Several people were killed and numerous others injured in New York on Tuesday when a suspect plowed a vehicle into a bike and pedestrian path in Lower Manhattan, and struck another vehicle on Halloween, police said. A suspect exited the vehicle holding up fake guns, before being shot by police and taken into custody, officers said. The motive was not immediately apparent. / AFP PHOTO / Don EMMERT (Photo credit should read DON EMMERT/AFP/Getty Images)
Now playing
01:43
The vulnerability of 'soft targets' to terror
The operations center of the Terrorist Screening Center
Terrorist Screening Center
The operations center of the Terrorist Screening Center
Now playing
05:20
An exclusive look inside the Terrorist Screening Center
From the left, British businessman Chris Norman,  Anthony Sadler, a senior at Sacramento University in California, French President Francois Hollande, U.S. Airman Spencer Stone, and Alek Skarlatos a U.S. National Guardsman from Roseburg, Oregon pose at the Elysee Palace, Monday Aug.24, 2015 in Paris, France. Hollande  pinned the Legion of Honor medal on U.S. Airman Spencer Stone, National Guardsman Alek Skarlatos, and their years-long friend Anthony Sadler, who subdued the gunman as he moved through the train with an assault rifle strapped to his bare chest. The British businessman, Chris Norman, also jumped into the fray. (AP Photo/Michel Euler, Pool)
Michel Euler/AP
From the left, British businessman Chris Norman, Anthony Sadler, a senior at Sacramento University in California, French President Francois Hollande, U.S. Airman Spencer Stone, and Alek Skarlatos a U.S. National Guardsman from Roseburg, Oregon pose at the Elysee Palace, Monday Aug.24, 2015 in Paris, France. Hollande pinned the Legion of Honor medal on U.S. Airman Spencer Stone, National Guardsman Alek Skarlatos, and their years-long friend Anthony Sadler, who subdued the gunman as he moved through the train with an assault rifle strapped to his bare chest. The British businessman, Chris Norman, also jumped into the fray. (AP Photo/Michel Euler, Pool)
Now playing
02:08
Train heroes honored for thwarting attack
shutterstock
Now playing
01:56
Is this terror or a mass killing?
Now playing
01:41
How vulnerable are citizens to terror attacks?
In this photo provided by Christina Cathleen Coons, a person lies on the floor after an incident on a high-speed train traveling from Amsterdam to Paris on Friday, Aug. 21, 2015. A gunman opened fire on the train wounding several people before American passengers subdued him, according to officials and one of the Americans involved. (Christina Cathleen Coon via AP)
AP
In this photo provided by Christina Cathleen Coons, a person lies on the floor after an incident on a high-speed train traveling from Amsterdam to Paris on Friday, Aug. 21, 2015. A gunman opened fire on the train wounding several people before American passengers subdued him, according to officials and one of the Americans involved. (Christina Cathleen Coon via AP)
Now playing
01:04
Exclusive cell phone video from inside train
Now playing
01:41
FBI: Several July 4th terror attacks thwarted
Now playing
01:43
American teen arrested in alleged ISIS plot
WHDH
Now playing
02:12
New details released in Boston terror plot

Story highlights

NEW: Restaurant owner says he was told his place was the intended target

Justice officials announced Thursday they thwarted Emanuel Lutchman's plans to kill civilians on New Year's Eve

Criminal complaint alleges a Rochester man got knives and a machete at Walmart

(CNN) —  

Justice Department officials announced Thursday they had thwarted a Rochester man’s plans to kill New Year’s Eve revelers in the name of ISIS at an upstate New York bar and restaurant.

Emanuel Lutchman, 25, was charged with attempting to provide material support to ISIS, which carries a sentence of up to 20 years in prison and a $250,000 fine.

“This New Year’s Eve prosecution underscores the threat of ISIL even in upstate New York but demonstrates our determination to immediately stop any who would cause harm in its name,” said William Hochul Jr., the U.S. attorney for the Western District of New York.

Lutchman allegedly received direction from an ISIS member overseas and planned to attack revelers in order to join ISIS.

According to a criminal complaint, Lutchman had been in contact with a man overseas who claimed to be in ISIS. Lutchman told him he wanted to come to Syria but was informed he couldn’t come now and that he should kill Americans to prove himself, according to the document.

Emanuel Lutchman
WROC/Monroe County Sheriff's Office
Emanuel Lutchman

On Monday, the document alleges, Lutchman met with a confidential source for the Justice Department. The source said Lutchman wanted to sneak a bomb into the restaurant and kidnap some people to kill.

Authorities allege he and the source went to a Walmart on Tuesday and bought two ski masks, two knives, a machete, zip ties, duct tape, ammonia and rubber gloves.

“The operation is a go. We just gotta do it, man,” the complaint says Lutchman told the source. He also talked about making a video before the attack, FBI Special Agent Timothy J. Klapec says in the document.

The FBI said the confidential source has been paid for cooperation on another case, and has a felony and misdemeanor on his criminal record. The source paid for the items at Walmart, it said.

The owner of Merchants Grill told CNN affiliate WHAM in Rochester that three FBI agents told him his restaurant would have been the target.

John Paige said business owners are familiar with Lutchman.

“He’s been around the neighborhood for quite some time. He’s a panhandler. A lot of businesses have asked him to leave, including myself,” he told WHAM.

Lutchman appeared before U.S. Magistrate Judge Marian Payson on Thursday morning.

The city announced that it was canceling its fireworks show and adding police officers to patrols.

The announcement comes as President Barack Obama has been seeking to calm fears in the wake of the San Bernardino, California, terrorist attack, while reassuring Americans of his strategy for handling ISIS.

Obama was briefed on a possible terror threat targeting three major U.S. cities happening between Christmas and the New Year’s Eve holiday.

CNN’s Steve Almasy and Jennifer Moore contributed to this report.