Both Islamic State and Hamas claimed responsibility for an attack in Jerusalem on Friday in which an Israeli border policewoman was killed, but the Israeli army said the assailants didn't belong to any terror group.

Islamic State's Amaq news agency said "soldiers of the caliphate" attacked a "gathering of Jews," and warned the attack "will not be the last."

>> Just how credible is ISIS' claim of the Jerusalem attack? >>

This is the first time ISIS has claimed an attack in Israel, although it did say it was behind rocket fire from Sinai in April.

Hamas spokesman Sami Abu Zuhri rejected the Islamic State's claim, saying it was meant to sow confusion, AFP reported. Abu Zuhri said that one of the attackers was a member of Hamas and the other two belonged to the Popular Front for the Liberation of Palestine.

Open gallery view Israeli border guards stand outside Damascus Gate in Jerusalem's Old City following the attack, June 16, 2017. Credit: AFP/ Thomas Coex

But the Israeli army said that the attack was perpetrated by a local cell that doesn't belong to any terror organization.

In the attack carried out Friday evening, three Palestinian assailants armed with guns and knives killed one Border Policewoman and left a number of people wounded.

The officer, Hadas Malka, 23, was critically stabbed while attempting to reach for her gun, according to Israel's Police, and later succumbed to her wounds.

All three attackers were shot dead by officers at the scene.

The attack unfolded along Sultan Suleiman Street, near Damascus Gate in the Old City. At one scene, two of the attackers were shot and killed after assaulting police officers with knives and guns. At the other, an attacker was shot dead after stabbing a border policewoman, critically wounding her.

Another officer was lightly wounded in the attack. Both were evacuated to Hadassah University Hospital in Jerusalem for treatment, where the female officer died of her wounds.

According to the police, two Palestinian bystanders were wounded in the shootout, one moderately and one lightly.