I would say the answer is "I was walking to school when the storm began" because the word "was" indicates an action in the past (walking) which is known as a gerund; word ending in -ing
If you say "I have walked (to school)", it would make more sense, grammatically, to follow that option with "during a storm".