A day-long clash between militants from Afghanistan who crossed the border and attacked a Pakistani checkpoint left 23 troops and 35 insurgents dead, police said today, underlining the challenges facing Pakistan as it tries to stamp out insurgents in its north-west.