Image copyright Getty Images Image caption Bill Peters resigned as head coach of the ice hockey team the Calgary Flames

A coach with North America's National Hockey League has resigned after a former player accused him of racism.

Bill Peters, head coach of Canada's Calgary Flames, quit over allegations he had used racist language a decade ago while coaching a minor league team.

Ex-player Akim Aliu said Mr Peters, who coached him at Rockford IceHogs in 2008-2010, had used the n-word.

Mr Peters apologised to the Calgary Flames for his "offensive language," but not to Mr Aliu directly.

He was suspended from his coaching duties earlier this week pending an investigation by the team. He had been hired as the head coach of the Calgary Flames for the 2018-2019 season, and is reported to have had a three-year deal worth $6m (£4.6m).

Calgary Flames general manager Brad Treliving said they had not been aware of similar allegations before Mr Aliu came forward, and that the investigation had now concluded and their findings would be turned over to the NHL.

"We want people to feel safe, secure in the environment. I think this is going to be a learning lesson for everyone," Mr Treliving told media.

The NHL said in a statement that its review of the incident continued and that it would be interviewing "relevant individuals".

Ice hockey is wrestling with how to shift its culture after several former professional players came forward about experiencing racism and bullying.

What happened?

On Monday, in a series of tweets, Mr Aliu said Mr Peters had "dropped the N bomb several times towards me in the dressing room in my rookie year because he didn't like my choice of music", while he was coaching the minor-league IceHogs.

He said the incident had caused him to "rebel" against his coach, and that Mr Peters had recommended he be demoted to a lesser league.

Mr Aliu, who was born in Nigeria, stayed mostly in the minor leagues but played several games for the Calgary Flames in the NHL in 2011-2013.

"If you play the race card, it's most likely the end of your career," Mr Aliu later told TSN. "This isn't me being bitter. I sat on this a really, really long time. It broke my heart. I think it made my career go downhill before it started."

Mr Treliving called the accusations "repugnant and unacceptable", and Mr Peters was suspended from coaching duties pending an investigation.

On Wednesday, Mr Peters wrote a letter of apology to the Flames organisation, but did not address Mr Aliu by name.

"I was rightfully challenged about my use of language, and I immediately returned to the dressing room to apologize to the team," he wrote. "I have regretted the incident since it happened, and I now also apologize to anyone negatively affected by my words."

However, Mr Aliu said the apology was "misleading, insincere and concerning".

A changing culture

This is not the first incident to shine light on racism within hockey's culture

On Remembrance Day, prominent Canadian ice hockey commentator Don Cherry was fired for comments he made on air accusing newcomers of not being patriotic.

"You people... you love our way of life, you love our milk and honey, at least you can pay a couple bucks for a poppy or something like that," Cherry said.

Several players have also come forward to talk about being the target of racism from fans.

This spring, minor-league player Jonathan-Ismael Diaby walked out mid-game because fans were harassing his family, who were watching him play.

Image copyright Getty Images Image caption Jonathan-Ismael Diaby

"Being a visible minority, we deal with it every day," he told the BBC. "But that was the first time I saw a big group of people pushing towards negativity like that."

In 2018, Detroit Red Wings prospect Givani Smith had to have police escort him to junior league play-off games after receiving numerous racially motivated hate messages and death threats on social media.

In 2014, Bruins fans hurled racial epithets at PK Subban online when the star hockey player scored a game-winning goal for the Montreal Canadiens.

Meanwhile, players have also been coming forward about bullying in the league.

Former NHL enforcer Daniel Carcillo has been outspoken about hockey's "toxic culture", especially in junior hockey and the minor leagues.

"They prey on young men's dreams. If you say a word, all of the work and time and energy and sweat and blood is all for naught. So you do whatever they tell you to do and take whatever abuse they throw your way. You shut up," he told the CBC.

These revelations come at a time that hockey is desperately trying to change its image.

In 2018, the NHL launched a campaign called "hockey is for everyone" aimed at promoting its commitment to diversity. The league also appointed a new vice-president, Kim Davies, in charge of social equality.