A 17-year-old has been charged after being detained by crew and members of the public on a plane in Australia.