Mr. Musharraf said Pakistan stands with India against what he called a " dastardly terrorist attack . "