That does sound painful. If there is some internal injury, I would wait a couple of days to see if this pain subsides. There's not a whole lot to be done if the foreskin does not retract. Avoid pain.