Fluctuations of Heat in Driven Two-State Systems: Application to Single-Electron Box with Superconducting Gap