Phrase uttered while someone has no idea as to what just may have just happened. Almost always exclaimed at very loud volume, such as a shout, and if done properly - the emphasis is on the words "fuck" and "that", ie:
what the FUCK was THAT?
Mayor of Hiroshima, 8/16/1945 at 8:15AM
"what the FUCK was THAT?"