CNN  — 

Ice hockey coach Bill Peters is apologizing after a former player accused him of using a racial slur against him a decade ago.

Peters coaches the NHL team Calgary Flames in Alberta. The team is investigating him after former player Akim Aliu posted a message on social media saying he directed offensive language toward him.

In a letter addressed to the NHL team’s general manager, Brad Treliving, on Wednesday, Peters said he was sorry.

“Although it was an isolated and immediately regrettable incident, I take responsibility for what I said. The statement was made in a moment of frustration and does not reflect my personal values,” he wrote.

“I meant no disrespect in what I said, and it was not directed at anyone in particular. But, that doesn’t matter; it was hurtful and demeaning. I am truly sorry.”

The letter was initially posted by TSN on Twitter.

In response to the letter, Aliu called what Peters wrote “misleading, insincere and concerning,” according to a statement Thursday that was first reported by TSN.

Aliu has accepted an invitation from the NHL to meet and discuss the situation, he said in his statement, which later was posted to his Twitter account.

Aliu, who was born in Nigeria and raised in Canada, said the incident happened when he was with the Rockford IceHogs, an affiliate of the Chicago Blackhawks, during the 2008-09 and 2009-10 seasons.

Peters “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,” he said.

Peters was the team’s head coach at the time. Aliu was later traded to the Atlanta Thrashers in June 2010, and is currently a free agent.

Aliu spoke to TSN on Tuesday, telling the network: “What am I going to say? I was 20 years old and a first-year pro. I was too scared to speak up. I beat myself up every day over it.”

He said two teammates from Rockford were in the room at the time of the alleged incident. Both independently corroborated Aliu’s accusation, according to the report.

Peters’ statement confirmed one incident in a dressing room.

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

CNN has tried to reach Peters for comment but has not been successful.

Peters joined the Flames as head coach last year after having the same role with the Carolina Hurricanes.

He was not behind the bench Wednesday night when the Flames defeated the Buffalo Sabres 3-2 on the road in overtime.

The NHL has said Peters’ action are “repugnant and unacceptable,” but declined to comment further until it’s had a chance to look into the allegation.

The letter will be reviewed as part of the investigation, Treliving said.

CNN’s Jill Martin contributed to this report.