How do you catch a Pokemon in the safari zone LeafGreen?

It's easiest to first use a Rock then use a Safari Ball afterward however the more rare a pokemon is the more likely it will flee after the rock is used.

I recommend using as many Safari Balls as possible especially on the more rare pokemon like Chansey.