Pro-Taleban militants have captured 24 soldiers from a military checkpoint in northwestern Pakistan .