The dogs were resting in the shade of a building by the beach