If a wasp is chasing you, it is likely because it feels threatened. Try to calm down and avoid making sudden movements. Once the wasp has flown away, you should be safe.