Researchers say they have built a flying robot that mimics the movements of a swimming jellyfish.