You can say oof, if your in a conversation with a person, who was happened something bad.
But the main sitation in which you can say oof is, if something really stoopid have happened.
EXAMPLE:
Sam: I broke my arm last night.
You: Oof.
Sam: What is the capital of Spain?
You: Berlin?!
Sam: Oof