The ship, carrying 277 crew members, mostly cadets, lost power and crashed into the bridge around 8:30 pm local time.