TENTH AMENDMENT TO CREDIT AGREEMENT AND SIXTH AMENDMENT TO PLEDGE AND SECURITY AGREEMENT