There are borescope cameras, this one has a hook on it. Or wrap it in tape, or sticky blue tack, bubblegum.
https://www.amazon.com/Seesi-Endoscope-Waterproof-Inspection-Semi-Rigid/dp/B07PBF6DX5
If the thing can wait for shipping.
There are also long grabber tools.
https://www.amazon.com/Flexible-Grabber-Bendable-Reaching-35-4inch/dp/B08D8H1D5X
You could tape the camera right to that.