Israel sets 2 day West Bank closure after Palestinian attack

Palestinian men pray at the Al Aqsa Mosque compound, during the Muslim holy month of Ramadan, in Jerusalem's Old City, Friday, June 10, 2016. (AP Photo/Mahmoud Illean) (The Associated Press)

Israeli security forces search a Palestinian woman at a checkpoint as she makes her way to attend the first Friday prayers in Jerusalem's al-Aqsa mosque during Muslim holy month of Ramadan, in the West bank city of Bethlehem, Friday, June 10, 2016. (AP Photo/Nasser Shiyoukhi) (The Associated Press)

Palestinian women take a picture during the Muslim holy month of Ramadan at the Dome of the Rock Mosque in the Al Aqsa Mosque compound in Jerusalem's Old City, Friday, June 10, 2016. (AP Photo/Mahmoud Illean) (The Associated Press)

The Israeli military says the West Bank will be closed off until the end of the Jewish holiday of Shavuot due to security concerns following a Palestinian shooting attack this week that killed four civilians.

It said Friday that crossings will be open for "humanitarian" cases and for Palestinians to worship at al-Aqsa mosque in Jerusalem.

Police are on high alert in Jerusalem as thousands of Palestinians are expected for prayers on the first Friday of the Muslim holy month of Ramadan.

The holy site has been a flashpoint of violence in the past, and tensions are especially high after Palestinian gunmen killed four Israelis in a shooting at a popular Tel Aviv tourist spot on Wednesday.

The military says the closure will end Sunday night after the Shavuot holiday.