Afghans take control of security