I wonder if I can guess what word you said?
When I smash my knee on a rock, I have been known to yell that word.
I'm a New Yorker. I use that word if I stub my toe.
Vytenis once heard me when I was frustrated in the woods, or perhaps I had just smashed my knee on a rock, and he later commented that I sounded like a sailor.
I assumed it was "phooey".