The flashlight is now build into the control center. Access the control center by swiping up from the bottom. You will see an icon that looks like a flashlight. Use that icon to turn the flashlight off and on. You probably hit the control center and flashlight by mistake and did not realized that you turned it on.
This
link shows you a picture of the control center.