Pakistani military officials say 14 of about 40 Pakistani soldiers who went missing following an attack on a security checkpoint have been found in neighboring Afghanistan .