I took this on a previous Chilean trip and just noticed it today so thought I'd post. It's from near the end of a timelapse and close to the border with Bolivia. Earlier in the sequence thundery cloud and lightning is visible, which leads me to think the object is a high altitude Sprite. The yellowy/brown sky is natural airglow.