Qatar Airways has apologised over the incident which happened on a flight out of Australia.