Britain's Paul Bonhomme managed to pull off a dramatic last-gasp victory in qualifying over Japan's Yoshihide Muroya at the Red Bull Air Race World Championship in Rovinj, Croatia.