At least 31 killed in attack on pre-school in Thailand