When air friction isn't zero, then whenever the pendulum moves it will feel a force acting against its motion. And the faster it moves, the greater this force will be.
This frictional force slows the pendulum down, reducing its kinetic and its total energy.
What happens to this energy?
How could we reduce this air friction in real life?
Could any other sorts of friction act on the pendulum?