Bomb kills two soldiers in NW Pakistan