Five Israeli soldiers were killed by mortar fire near the Gaza border late Thursday, the army said in a statement.