A major search is under way after a military aircraft carrying 32 people crashed.