Oh wait, I thought you were talking about the boss!
The monsters in your picture have a cycle: they look in a specific direction for some seconds, and then they look in the other direction. You just need to move while they're not looking towards you. They have been designed to be unbeatable. It's more like an stealth section