Pakistan 's military has been trying to flush out foreign militants from the region since last March .