A Qantas flight from Melbourne to Dallas was diverted to Tahiti after a passenger allegedly became violent midair.