You could be right, Lin. Those flies are susceptible to fungal diseases and infected ones often die and get stuck to things. There's a pic of that also on Bugguide, pretty much looks the same:
http://bugguide.net/node/view/...
Edited - forgot to add the fly in this pic is not a bean seed fly.