Hello... great pic... OK it looks like you pulled the wire out of The "PIN" it self?... always use the connector body instead of the wires to avoided future problems... B D
1) Ok remove PIN... by releasing and pressing the pin tab down, And/Or pull up on the Connector housing Tab. ... and use something small like a? sewing needle? to get/push the pin out without destroying the connector or pin... it might just drop out once the pin "tab" is pushed in OR the Connector Body tab is pulled out. B /
2) Once pin is safely out... you best option would be a small amount of heat and solder, because the crimps will (might) be too small and fragile to open up again. B / that's how I would fix it B )