Israel has shut down the Al-Aqsa Mosque after at least three Palestinians and two Israeli police officers were killed in an attack at the mosque compound in Jerusalem.