Dozens of pilot whales were stranded on a beach in Western Australia on Thursday as wildlife authorities and volunteers tried to save them.