You'd have to either wait it out, or restore it. If you don't have a backup of the device and it has important data on it, then wait it out. If you have a recent backup or if the data on it isn't valuable at all, just restore it in Recovery/DFU mode using iTunes. Note that it must be in DFU/Recovery or it won't let you as it'll ask you to unlock it first.