Welcome!
To clarify, do you mean the app is running in the background? If so, some developers do that in order to allow their app to open quicker.
Or, do you mean that your flashlight app keeps the camera flash on all the time? If it is this one, I would recommend contacting the developer.
Let us know if that fixes the issue!