CCTV circulated online appeared to show around a dozen undercover troops, including three in women's clothing and two dressed as medical staff, pacing through a corridor of Ibn Sina hospital in Jenin with assault rifles.

Reuters could not immediately verify the footage.

Israel's border police said three Palestinian gunmen were killed in an operation by the force's undercover unit. The Israeli military identified one of them as a Hamas member who, it said, planned an "attack inspired by the Oct. 7 massacre".

Hamas launched a surprise raid into southern Israel on Oct. 7 which triggered Israel's assault on the Hamas-ruled Gaza Strip and sparked a surge of violence in the West Bank, another territory where Palestinians seek statehood.

The two additional Palestinians killed in Tuesday's operation were a member of the Hamas-allied Islamic Jihad and a member of a group of Jenin-based gunmen, the Israeli military statement said. Both had been involved in recent attacks, it said.

There was no immediate Palestinian confirmation of the men's identities. Voice of Palestine radio reported three Palestinian had been killed at the hospital.

(Reporting by Ali Sawafta; Writing by Nadine Awadalla; Editing by Tom Hogue, Miral Fahmy, Christian Schmollinger and Michael Perry)