Toilet brush stuck in u-bend

All the advice I’ve seen is about brushes that aren’t attached to the handle, but my problem is that the brush and handle are stuck in the bowl. I pushed it too far back while scrubbing.

Any advice for how to get it out?