Bomb kills four Pakistani soldiers near Afghan border