WINSTON-SALEM, N.C. — A white man who challenged a black family’s use of a private community’s pool has not only resigned from the homeowners association board — he’s also lost his job.

Sonoco announced Friday that Adam Bloom is no longer employed by the packaging and industrial products company, saying it doesn’t condone discrimination of any kind, even if it happens outside its workplace.

A video posted on the Facebook page of Jasmine Edwards on July 4, seen more than 4 million times, shows what happened after Bloom questioned whether she was allowed to be at the pool in Winston-Salem. He also called police.

Bloom, Edwards and the responding officers all speak in measured tones in the video. She accuses him of singling out her and her young son as African-Americans by asking to see her ID. Bloom, who served as the chairman of the pool, responds that he asks residents to see their identification “a couple times” each week.

Officers then determined that Edwards, who lives in the neighborhood, did in fact have keycard access to the gated pool.

An officer then apologized to her. When Edwards asked Bloom for an apology, he walked away.

On Facebook, Edwards accused Bloom of racial profiling: “This is a classic case of racial profiling in my half a million $$ neighborhood pool. This happened to me and my baby today. What a shame!!”

The social media backlash was fierce, and soon targeted Bloom’s employer. In a Twitter post , South Carolina-based Sonoco apologized to Edwards and said the situation doesn’t reflect company values.

“We are aware of a terrible incident involving the actions of one of our employees outside the workplace,” the statement said, adding that the “employee is no longer employed by the company in any respect.”

Company spokesman Brian Risinger confirmed that Bloom’s separation was “effective immediately.” Risinger said Bloom was a business development manager who had been with Sonoco for about five years.

An attorney for Bloom told the Winston-Salem Journal had simply been performing his duties as a neighborhood official after another woman approached Bloom questioning whether Edwards had the right to be poolside.

Lawyer John Vermitsky said his client called police to “make sure that the interaction didn’t escalate,” and said it’s “unfortunate that conclusions are being reached by people who have seen a 46-second video of their interaction.”

Police Chief Catrina Thompson warned that her officers “will not be used as pawns to further someone’s dislike for anyone.”

The Glenridge Homeowners Association said Thursday afternoon that Bloom resigned as the pool’s chairman and association board member.

“We sincerely regret that an incident occurred yesterday at our community pool that left neighbors feeling racially profiled,” the association statement says. “In confronting and calling the police on one of our neighbors, the pool chair escalated a situation in a way that does not reflect the inclusive values Glenridge seeks to uphold as a community.

Vermitsky said Bloom resigned from his neighborhood positions to limit negative publicity, and not because he did anything wrong.