First, climb the rope
Second, reach to the exact point where red skeleton sees you starts walking and attacking. Don't climb to the point where the projectiles can hit you.
Third, swing your pickaxe at the projectile.
Fourth, you will notice the projectile will explode when hit by pickaxe, and it will injure the red skeleton.
Fifth, repeat until the Red Skeleton dies.