From The Six-Day War: A Defensive War:
International law makes a clear distinction between land “occupied” during a war of aggression and land taken as a result of a defensive war. On June 5, 1967, Jordan attacked Israel. Suburbs of Tel Aviv were shelled by artillery. Israel’s largest military airfield, Ramat David, was shelled. Jordanian warplanes attacked the central Israeli towns of Netanya and Kfar Saba. Thousands of mortar shells rained down on western Jerusalem, targeting Israel’s parliament building and the prime minister’s office. Twenty Israelis died in these attacks; 1,000 were wounded; 900 buildings were damaged. Only after coming under fire and sustaining casualties did the Israeli military respond against Jordanian forces in the West Bank.