A former after-school care counselor faces a child-endangerment charge for his alleged role in the jamming of a 6-year-old boy into a closet “torture chamber” at an Upper West Side school.

Charlie Calderon, 26, was busted Wednesday by the NYPD Manhattan Child Abuse Squad.

The boy’s mother, Porsche Gaddy, said he was put in the closet as punishment for “acting up.”

Calderon was among four staffers of the Learning Action Center for Academic Success and Achievement after-care program at PS 84 on West 92nd Street who allegedly stuffed the boy in a hole in a closet ceiling. All four were fired after the allegations came to light May 11.

One of them, Camila Naranjo, 21, also was suspended without pay as a paraprofessional at PS 9 on West 84th Street on May 30 by the Department of Education.

LACASA, run by the Stryckers Bay Neighborhood Council, was shut down May 17 because it lacked a city permit, DOE officials said.