What kind of soil-dwelling flying insect is this?
Those look to me like fungus gnats. If you're looking to get rid of them, I've heard that putting a layer of rice hulls on top of the soil keeps them from reproducing. From what little I've read my identification doesn't go much deeper than superfamily, taxonomically, but it's a least a common name to work from.