Thank you for the details of the issue you are experiencing with your iPhone. Follow these steps when getting Error 9006:
Configure your security software
Check your security software and settings, which can block ports and prevent connection to Apple servers during update and restore.
Common errors: 2, 4, 6, 9, 1000, 1611, 9006, 9807, 9844. Sometimes as a result of this issue, a device might stop responding during the restore process.
You can find the full article here:
Thank you for using Apple Support Communities.