Canadian teacher Maggie MacDonnell spent six years working with children in a remote Arctic Inuit community has won a $1m (£810,000) prize at a ceremony in Dubai.