"We maintain dialogue with the two countries. Of course, one cannot help but condemn acts that cannot be called anything other than terrorism," Peskov told reporters, adding that "it is important for ... [Moscow] to maintain a balanced approach."
Russia must maintain an equal distance, which will give it the right to participate in the settlement process, the official added.
"And Russia can and will play a role in the settlement process," he said.
On Saturday, Palestinian group Hamas launched a surprise large-scale rocket attack against Israel from the Gaza Strip, prompting Israel to declare a state of war the following day and launch retaliatory strikes.