Kunar is a mountainous province on the border with Pakistan and is considered a hideout for militants .