Press and hold the Option key (Shift for Windows) and click Update in iTunes if your device is not in Apple developer programme. If it is choose restore button.

Select the iOS 7 ipsw from the popup window to install.

It’s unclear why this is working. Only iPhone devices registered by developers are supposed to be able to install beta firmware. Perhaps Apple took down this check since its servers are being flooded at the moment.