WASHINGTON — The Department of Homeland Security’s head of outreach to religious and community organizations resigned on Thursday after audio recordings revealed that he had previously made incendiary remarks about African-Americans and Muslims while speaking on radio shows.

In a 2008 clip, the Rev. Jamie Johnson, who was appointed by the Trump administration to lead the Center for Faith-Based and Neighborhood Partnerships, told radio listeners that the black community had “turned America’s major cities into slums because of laziness, drug use and sexual promiscuity.” He also said black people were anti-Semitic because they were jealous of Jewish people, according to audio posted by CNN.

A Homeland Security official confirmed Mr. Johnson’s resignation after CNN published the audio on Thursday. John F. Kelly, the White House chief of staff, had appointed Mr. Johnson to the department in April during his brief tenure as secretary of Homeland Security.

“His comments made prior to joining the Department of Homeland Security clearly do not reflect the values of D.H.S. and the administration,” Tyler Q. Houlton, the department’s acting press secretary, said in a statement. “The department thanks him for his recent work assisting disaster victims and the interfaith community.”