Pakistan 's President Pervez Musharraf has warned foreign militants using the Waziristan region as a hideout to leave or be killed .