An avalanche in a mountainous area of northern Pakistan has killed 25 people who were digging for precious stones .