The powerful earthquake that struck beneath the Gulf of Alaska early Tuesday generated a tsunami, but before gauges could show that it was very small, warnings went out to a vast swath of the state and British Columbia, while a lower-level alert targeted the rest of the West Coast.