FIRST AMENDMENT TO AMENDED AND RESTATED CREDIT AGREEMENT, AMENDED AND RESTATED SECURITY AGREEMENT AND PLEDGE AGREEMENT