A rare 18-meter sperm whale, which is under danger of extinction, washed up dead on the shore, causing panic in the Dalian province of northern China.