A small drone that resembles a robotic dragonfly is the first of its kind to be able to flap its wings and dodge obstacles mid-flight without a human operator at the controls.