Yep. Had a black cat go off about 5 feet away 3 years ago on the 4th. Freak deal as far as the hearing damage. My ear (left) rang for a week, so I finally went to the ear doc.
Results: I have tinnitus. Deaf in my left ear at 3800 MHZ. Permanent.
There are two types of hearing damage. Prolonged exposure damage - like working around power equip, shooting alot without plugs, etc. Or Acute, which is what I got (and sounds like you did). 1 time freak deal that damages your hearing permanently.
Go get a hearing test. If it is permanent, your brain will eventually filter the ring out most of the time. It's a bitch for the 1st few months though. Can't sleep for shit!
Or, you may go crazy and cut off your ears like Van Gogh (he had tinnitus)
I have had lots of worse noise experiences with no appreciable damage before, especially when I was a kid. The sad part is, I was showing my son hoew to light a firecracke ron the ground when it went off. Doc said it just happens to hit the right MHZ cycle at the right angle and your ear hairs (for lack of a better word) at that range are toast.
FWIW I wear ear plugs for EVERYTHING now, from mowing to power tools. Just like your eye protection, you only get 2 ears.
Good luck and hope yours is temporary.