Twelve people are killed when a helicopter belonging to the Pakistani army crashed in the country's northwest.