You were fortunate to reach the next area before the aliens detected you. From my understanding the longer you have your flashlight on the more likely you are to be detected and captured by the aliens. It's represented by the weird noise that occurs every once in a while. The longer the flashlight is held on the closer the interval of the noises until finally.... you lose. haha.