Hi, 
I was replacing my knock sensor and pulled a little too hard when trying to disconnect the sensor from the connector and the male end of the connector disconnected from it's wire (see attached).  It's in a tight spot to solder the wire back to the connector.  Any suggestions? 
  
Thanks!