Navy officials have said that the San Francisco , a nuclear attack submarine , crashed into the mountain 360 miles southeast of Guam on its way to Brisbane , Australia , a popular liberty port for sailors .