Great Britain's Max Burgin won the 800m at the Rabat Diamond League, defeating Olympic champion Emmanuel Wanyonyi in what was described as a "special" performance.