The Philistine army attacked the Israeli army, and as the battle continued, the Philistines defeated the Israelis and killed about 4,000 of their soldiers.