Most commercial wasp traps are designed to catch wasps only, and contain ingredients that bees want to avoid. However, if you want to be 100 percent sure, read your trap’s instructions.
If it turns out that a particular trap is going to attract bees, switch to a different brand. There’s no reason to kill off helpful honeybees while you’re managing your wasp problem.