You must first block the Pokemon from three sides and stand in the fourth side of it. Then, throw a Pokeball to catch it. You will not be allowed to keep the Pokemon throughout the entire game. You must release it after about ten battles or it will run away.
Pokemon Ranger: The Road To Diamond And Pearl