Don't use anything until you've identified the culprit!! Send us a photo of the damage and the "flies" that could very likely not be eating your okra and could in fact be beneficial syrphid flies. If it's a traveler like grasshoppers, nothing you spray will work.
Don't use dish detergent. Period. It can kill certain pests and also can dissolve the protective waxes on plant leaves.
Insecticidal soap contains fatty acids which kill certain soft-bodied insects only on direct contact, and even with that you must be careful about spraying in sunlight or in the presence of other insects like bees. If you must DYI, use diluted Castile soap; better yet, purchase Safer brand and use according to instructions. Here's the info you need, worth your while to read before concocting home remedies:
https://homegarden.cahnr.uconn...