Customs and Border Protection Commissioner Chris Magnus said he had been asked to step down by the homeland security secretary.