Indonesian authorities say the submarine was in good condition and recently underwent maintenance, despite being built in the late 1970s.