You have to restore with Custom Firmware using Itunes.
Before restoring, you have to use redsn0w to put it in pwned DFU mode.
After that, just open Itunes and restore using Shift Key + Restore and select your cutom firmware.
Link to 3Gs 4.2.1 custom firmware.