Portugal's attorney general says detectives have arrested five military instructors as part of an ongoing investigation into the deaths of two soldiers who died during commando training.

A statement from the attorney general's office said an army doctor and the officer in charge of the training program are also under arrest. The statement issued Thursday says the seven were detained on charges of abusing their power and causing physical harm, as well as failing to help someone in need.

The two soldiers, both age 20, died in September when temperatures in the training area exceeded 40 degrees Celsius (104 Fahrenheit.)

The training course was halted and the Defense Ministry ordered an investigation.