Can I knock the pin which is sticking up down ? I couldn't push it with my fingers.
You may need to use a hammer, with a piece of wood on top of the pin to avoid damaging it. It will just be tension on the door hinge, preventing it being pushed back into place. The pins creeping out in use, is a common problem.