I wouldn't try to pull him out - you might hurt him. Let him come out on his own. If he was able to get in there then he should be able to get out when he decides to.

Just wait him out. Good luck