In Kies select Tools -> Emergency firmware recovery
This will identify the appropriate firmware for your device (by serial no I think), wipe your device clean and install the latest available firmware. It is the 'nuclear option' when all else fails.
It rescued me from a brick once, but I ended up on new bootloader so tripped Knox fuse when I rooted. Annoying, but tolerable to get the device working again.