If you live near a small body of water it could be dragon flies. There's also the possibility of them being something like grasshoppers or locusts since most of those bugs can fly if they reach maturity.
The Pelecinid Wasp is long and thin and has a black shiny body. They don't live in hives. They are beneficial in that they lay their eggs in insect larvae.