The suspected gunman was killed after a manhunt by security forces, the Israeli General Security Service said in a statement Friday morning.
“At the end of a security forces chase, the terrorist who carried out the attack in Tel Aviv was located and foiled,” the statement said.
General Security said the suspect was shot dead by Shabak security forces after an exchange of gunfire.
The suspect was “located by the Shabak (General Security Service) when he was hiding near a mosque in Jaffa and was killed on the spot during a shootout with Shabak and YAMAM (Israel’s National Counter-Terrorism) militants.” , the statement said.
It identified the shooter as Raed Hazem, a 28-year-old from the Palestinian West Bank city of Jenin who had “no clear organizational affiliation, no security background and no previous arrests”. The service said Hazem does not have permission to enter Israel and is an illegal resident.
The investigation into the attack continues, according to the General Security Service.
The incident happened at a bar on Dizengoff Street, a popular dining area in the city center, an Israeli police commander said.
The number of wounded was not immediately clear. In a speech on Israeli television, Tel Aviv Police Commander Ami Esshed put the number at more than a dozen.
Journalist Lauren Izso, who was at the scene shortly after the attack, estimated that hundreds of police officers were involved in securing the area and searching for the shooter.
In a speech on Israeli television, Tel Aviv Mayor Ron Huldai urged the city’s residents to stay at home.
The two killed were men, both in their 30s, a spokesman for Magen David Adom said.
Tel Aviv’s Ichilov Hospital, where most of the casualties were taken, said doctors were fighting to save the lives of four wounded.
The shooting is the latest in a series of violent incidents that have embarrassed Israel and the Palestinian territories.
In just one week in March, eleven people were killed in three attacks in Israeli cities. It was the deadliest week Israel had experienced in years and followed weeks of rising tensions, in which Israelis were the target of knife attacks and several Palestinians were shot dead by Israeli forces in the West Bank.
It’s not clear if Thursday’s shooting is related to the recent violence.
Militant groups in Gaza and the West Bank praised Thursday’s attack, although they did not claim responsibility.
Hamas called it a heroic operation, while Islamic Jihad promised “the resistance will continue.”
United Nations Special Coordinator for the Middle East Tor Wennesland condemned the attack and singled out Hamas in a tweet, saying: “Regret Hamas’ welcome of this attack; there is no glory in terror. These attacks must stop now and be condemned by all.”
CNN’s Abeer Salman, Ibrahim Dahman, Andrew Carey, and Hadas Gold contributed to this report.