A pilot whale died Tuesday night after beaching itself in Little Compton, the second time this week a whale has washed ashore on a town beach.