An Indonesian military plane carrying 24 people crashed into an airport hangar and burst into flames Monday, an air force spokesman said. All on board were feared dead.

It was not clear what caused the Fokker 27, carrying special forces trainees on a parachuting exercise, to go down in rainy weather outside the city of Bandung.

Emergency vehicles rushed to the scene and shuttled victims to a nearby hospital.

Dr. M. Drajat told El Shinta radio 17 bodies had arrived from the crash site and others were believed to be on the way.

Witnesses told the Antara state news agency the aircraft appeared to be shaking before diving to the ground.

Air force spokesman Bambang Sulistyo said six crew, an instructor and 17 trainees were on the plane.

Indonesia's military has an aging fleet of aircraft and accidents are not uncommon. The plane that went down Monday was said to be more than 30 years old.

A series of commercial airline crashes in recent years has killed more than 120 people in Indonesia.