Pakistan reached a peace deal with pro-Taleban militants in North Waziristan last year to stop attacks on security forces inside Pakistan and Afghanistan and expel foreign militants .