An accidental explosion ripped through a store in north-western Pakistan today, killing at least three people and trapping others in a separate building that caught fire, police said – rattling nerves in a city repeatedly pounded with militant attacks.