Bomb kills four soldiers near Afghan border