The Islamic State group has claimed responsibility for an attack in Jerusalem for the first time saying it fatally stabbed an Israeli policewoman outside the walled old city.

In an online statement, is said its fighters had targeted a “Gathering of Jews”, warning that “This attack will not be the last”.

But the claim was swiftly dismissed by Palestinian militant groups.

But Hamas in a statement said the attackers had come from among its own ranks and the leftist popular front for the liberation of Palestine.

Israeli police said three Palestinians attacked officers at Damascus gate in annexed east Jerusalem late on Friday before being shot dead by security forces.

According to police, two assailants opened fire on a group of officers who returned fire, and a third stabbed the border policewoman a short distance away before being shot.