Follow the following steps to fix
iPhone 4s stuck in recovery mode:
1. Hold down the home and power button for about 15 seconds, this shuts off the iPhone.
2. Press the power button to boot the iPhone.
Then you can use
iPhone data recovery software to recover photos.