google
ref
natural exclamation: first recorded in English in the mid 19th century.
wiktionary
ref
An onomatopoeia. Similar to Dutch oef and German uff. The verb sense is from a sound effect used in point-of-view video games when a character dies.
Clipping of ooftish