I believe the sailors entered one of the ship's tanks without proper ventilation. This is a very common cause of death of repair/maintenance workers on merchant vessels, however, this to happen on a Navy ship is very sad indeed. This incident points at improper safety training to the sailors and improper supervision at work.
Navy should carry out a thorough investigation into this matter and review their safety procedures.