You need to boot the phone into Recovery Mode. You can do so by pressing Volume UP + Power Button until the Android logo appears. Select Wipe Data and then reboot the phone. It will be restored to its factory condition but at least it is not locked anymore.