try to get it down somehow - water food anything, then take it to the vets.

Or get a big net (such as they have at pools - seems cruel but it may be the only way