A hail of gunfire could be heard on grainy footage posted on social media.
Police officials said officers shot two assailants dead at the site.
Israel called in a top Palestinian cleric from the al-Aqsa mosque for questioning on Friday afternoon, following a spike in violence in Jerusalem that saw Friday prayers at Islam's third holiest site cancelled for the first time in 17 years.
Israel has closed the site for further weapons sweeps.
After the attackers retreated to the mosque complex, teams of Israeli police forces entered the esplanade in pursuit and opened fire, killing three.
US Democrats Introduce New Sanctions Bill Against Iran
There's also another issue lingering over the bill in the House that could lead to changes to the measure. Then there's the fact Democrats used their majority to pass a bill detested by almost all Republicans.
Israel has also approved the construction of 71 housing units in the Arab Al-Sawahra Palestinian neighbourhood, and 29 others in Sharafat, according to Maariv. Kamil Shnaan, 22, was the son of a former Israeli parliamentarian.
It was one of the most serious attacks so close to the volatile holy site, known to Muslims as the Noble Sanctuary and to Jews as Temple Mount, in years. The Israeli government has increasingly encroached on the mosque with police, and excavations in the immediate area.
One officer was ambushed in what appears to be the Muslim Quarter of the Old City, just outside of the Al-Aqsa Mosque.
The site's importance to both faiths is part of the rising tension between Palestine and Israel.
Gradually reopening the site to worshippers and visitors "will be based on an estimate that will be made Sunday", he said. The compound was then declared closed and prayer was banned.
An argument ensued, and Hussein was detained but later released.
Red Sox Top Prospect Rafael Devers Reportedly Promoted To Triple-A
Gray lasted just two innings in Friday's loss, giving up eight runs on nine hits with just one strikeout and three walks. David Ortiz was gone, so someone needed to fill his ebuillent leadership role in the clubhouse and on the field.
The closure stopped Muslims gathering there for Friday prayers, drawing a call for resistance from Palestinian leaders.
Jordan is a custodian of the compound in Israeli-occupied east Jerusalem. It later annexed the city in 1980, claiming all of Jerusalem as the Jewish state's "eternal" capital - a move never recognized by the global community.
The site is administered by the Islamic Waqf organisation.
Since September 2015, Palestinian attackers have killed 43 Israelis, two visiting Americans and a British tourist.
He said "the Israeli project is to remove as many Palestinians as possible" and to replace them with Zionists from around the world, adding that the Tel Aviv regime resorts to violence, demolition of Palestinian homes and terrorism to achieve that goal.
The two policemen killed were Israeli Arab citizens from the country's Druze community.
Watch Venus Williams vs Garbine Muguruza live
Garbiñe Muguruza has been crowned Wimbledon champion after beating the seven-time grand-slam victor Venus Williams 7-5, 6-0 on Centre Court.
The violence had greatly subsided in recent months.
- Lobbyist at Trump camp meeting denies Russian intelligence connection
- Venus seeks sixth Wimbledon title
- Wells Fargo Gets Boost from Higher Rates but Lending Stagnates
- Zlatan Ibrahimovic: 'There'll be a very big announcement soon' on my future
- 'Toy Story 4' Will Have New Paper Doll Character
- Daenerys on 'Game of Thrones': A Storyline Recap of Season 6
- Muguruza acknowledges Martinez impact in Wimbledon run
- Democrats plant Trump landmines for GOP on defense bill
- New GOP Health Care Bill keeps Medicaid cuts, allows cheaper plans
- Chelsea close in on third summer signing after agreeing £40m fee