They were shot by three Israeli Arabs close to the compound known to Jews as the Temple Mount and to Muslims as Haram al-Sharif (Noble Sanctuary).
Police chased the attackers into the site and shot them dead.
There has been a wave of stabbings, shootings and car-rammings of Israelis predominantly by Palestinians or Israeli Arabs since late 2015.