An attacker opened fire into a crowded bar in central Tel Aviv on Thursday, killing at least two people and wounding several others before fleeing into a dense residential area, Israeli officials said.

Police said there were “indications” it was a politically motivated attack — the fourth deadly assault in Israel in less than three weeks at a time of heightened Israeli-Palestinian tensions. The militant Hamas group that rules the Gaza Strip praised the attack but did not claim responsibility.

Hours after the shooting, the suspected gunman remained at large. Hundreds of Israeli police officers, canine units, and army special forces were conducting a massive manhunt in central Tel Aviv, searching building by building through densely populated residential neighborhoods.

Also read | ‘Priceless’: Finland seizes art worth $46 million headed to Russia

Prime Minister Naftali Bennett met with top security officials and ordered reinforcements into the city. “Wherever the terrorist is — we’ll get to him. And everyone who helped him indirectly or directly — will pay a price,” he said in a statement.

Amichai Eshed, the Tel Aviv police commander, said the shooter opened fire at a packed bar at around 9 p.m. and then fled the scene.

“Our working assumption is that he is still in the vicinity,” he told reporters. “As of right now, there are indications pointing to this being a terrorist attack, but I have to be very delicate about this, and say that we are also checking other leads.”

Also read | Nearly 90% of Bucha victims were shot, not random casualties of war, mayor says

Israel’s Magen David Adom emergency service said two men around 30 years old were killed. Another seven people were wounded, three of them seriously, it said.

The shooting took place on Dizengoff Street, a central thoroughfare that has seen other attacks over the years. In the most recent, an Arab citizen of Israel shot and killed two Israelis and wounded several others on the street in January 2016.

Thursday’s attack took place at the start of the Israeli weekend in the popular nightlife area. Medics described scenes of panic, with dozens of people fleeing after the shots rang out.

Also read | Israel government loses majority as religious lawmaker quits

Tensions have been high after a series of attacks by Palestinian assailants killed 11 people just ahead of the holy Islamic month of Ramadan, which began nearly a week ago. Last year, protests and clashes in Jerusalem during Ramadan ignited an 11-day Gaza war.

Israeli, Jordanian and Palestinian leaders have held a flurry of meetings in recent weeks, and Israel has taken a number of steps aimed at calming tensions, including issuing thousands of additional work permits for Palestinians from the Hamas-ruled Gaza Strip.

Prior to the attack, Israel had said it would allow women, children and men over 40 from the occupied West Bank to pray at the Al-Aqsa Mosque in east Jerusalem on Friday, the first weekly prayers of Ramadan. Tens of thousands were expected to attend.

Also read | West Bank refugee camp raided by Israel, 2 Palestinians killed

The mosque is the third holiest site in Islam and sits on a hilltop that is the most sacred site for Jews, who refer to it as the Temple Mount. The holy site has long been a flashpoint for Israeli-Palestinian violence.

Israel has worked to sideline the Palestinian issue in recent years, instead focusing on forging alliances with Arab states against Iran. But the century-old conflict remains as intractable as ever.

Israel captured east Jerusalem, the West Bank and the Gaza Strip in the 1967 Mideast war. The Palestinians want all three territories to form their future state. The last substantive peace talks broke down more than a decade ago, and Bennett is opposed to Palestinian statehood.

Also read | 5 Palestinians arrested in connection with deadly shooting in Israel

Israel annexed east Jerusalem in a move not recognized internationally and considers the entire city to be its capital. It is building and expanding Jewish settlements in the occupied West Bank, which most of the international community considers illegal.

It withdrew soldiers and settlers from Gaza in 2005. But along with neighboring Egypt, it imposed a crippling blockade on the territory after the militant Hamas group seized power from rival Palestinian forces two years later. Israel and Hamas have fought four wars since then.

Hamas spokesman Abdelatif Al-Qanou said late Thursday that the “the heroic attack in the heart of the (Israeli) entity has struck the Zionist security system and proved our people’s ability to hurt the occupation.”

Also read | UN aid chief ‘not optimistic’ about ceasefire between Russia and Ukraine

On March 29, a 27-year-old Palestinian from the West Bank shot and killed five people in the central town of Bnei Brak. Two days earlier, a shooting attack by two Islamic State group sympathizers in the central city of Hadera killed two police officers. The week before, an IS supporter killed four people in a car-ramming and stabbing attack in the southern city of Beersheba. The Hadera and Beersheba attacks were carried out by Palestinian citizens of Israel.

The recent attacks appear to have been carried out by lone assailants, perhaps with the help of accomplices. No Palestinian militant group has claimed them, though Hamas has welcomed the attacks.

Israel says the conflict stems from the Palestinians’ refusal to accept its existence as a Jewish state and blames attacks in part on incitement on social media. Palestinians say such attacks are the inevitable result of a nearly 55-year military occupation that shows no sign of ending.