A Pakistani army MI-17 helicopter crashed due to a technical failure, killing all 21 people on board.