A bright γ-ray flare interpreted as a giant magnetar flare in NGC 253