In fact, no Egyptian soldier attacked Israel at the onset of the war. Egyptian soldiers attacked Israeli positions that were illegally occupying Egyptian territory in the Sinai. More importantly, Egypt did so after repeatedly attempting to secure a land for peace deal based on the relevant UN resolutions. In 1971, Egypt offered Israel peace if Israel withdrew from the Sinai, and Israel rejected the offer, with Moshe Dayan famously proclaiming that Israel preferred "Sharm el Sheikh [in the Sinai] without peace to peace without Sharm El Sheikh". Israel's rejection of every attempt to resolve the occupation peacefully led State Department officials to remark that Israel was giving away its best opportunity for peace. This left Egypt with no other option to recover its territory. More importantly, Israel's poor performance in the war exposed its vulnerability and ultimately forced Israel to raise the importance of making peace, ultimately leading to the peace treaty later that decade.
Palestinian reportedly shot dead by Israeli soldiers after approaching Gaza border fence (Haaretz)
from the article: Israel marks 36th anniversary of Yom Kippur War