Former NBA standout Mike Bibby is being investigated by police in Arizona after a teacher accused him of rubbing his genitals against her, district officials said.

A spokeswoman for the Paradise Valley Unified School District confirmed in a statement that Bibby, 40, is under investigation by Phoenix police after a teacher at Shadow Mountain High School — where Bibby had coached the varsity boys’ basketball team until these allegations — alleged he grabbed her by the waist and groped her while pulling her toward his car on school grounds in February 2017.

Spokeswoman Becky Kelbaugh said that Phoenix police opened an investigation into the teacher’s claims on Feb. 14 of this year and Bibby would now be ineligible to coach, pending the outcomes of the investigation.

“At the request of the Phoenix Police Department, the district’s internal investigation was suspended pending the conclusion of the Police Department’s active investigation into the accusations,” Kelbaugh said in a statement.

The unidentified teacher at the school, where Bibby played on its 1996 state championship team, was granted a restraining order by a judge against Bibby on Friday. In it, the woman claims she was walking outside toward the school when she saw Bibby driving on school grounds.

Bibby, whom she did not know at the time, then gestured toward her, prompting the teacher to walk toward the driver’s side of Bibby’s car before the former point guard opened the door and hopped out, according to the restraining order obtained by the Arizona Republic.

Bibby then picked up the teacher “around the hips” and tossed her into the car, with her legs hanging out of the vehicle’s open door while he lay atop her. The teacher also reported smelling alcohol on Bibby’s breath, according to the restraining order.

“What I could do to you,” Bibby told the woman as he rubbed his body and genitals on her while groping her, the document states.

The teacher managed to wiggle out of Bibby’s grip and headed toward the school as he followed her. Bibby then held the woman around the waist and hugged her before rubbing his erect penis against the teacher while making explicit sexual comments as two school employees looked on, according to her account, leaving her “in shock, intimidated by his actions [and] afraid of him as he smelled of alcohol.”

A few days later, according to the teacher, Bibby stopped by her classroom uninvited before returning a day later to say they needed to talk. At that point, the teacher told Bibby his behavior was “out of line” and that he had sexually abused her.

Bibby, according to the restraining order, replied that he had been drinking earlier that day before telling her she was a “beautiful and nice person,” someone he wanted to date. But the teacher wasn’t interested, she said, and told Bibby to stay away.

Bibby then asked the teacher if she was going to “tell” others about the allegations. She said she would not, taking Bibby’s teenage players into account, according to the restraining order.

Bibby’s attorney, meanwhile, denied the allegations against the former point guard who played 14 NBA seasons, including 39 games with the Knicks in 2011-12.

“I can say with pretty much certainty this alleged incident didn’t happen and that will be shown down the road,” attorney Donald Harris told the newspaper. “Michael Bibby did not participate in a sexual assault of any way, shape or form that was alleged by this lady two years ago.”

Bibby led the school to its fourth consecutive state championship on Saturday, the Arizona Republic reports.

A message seeking comment from the school’s athletic director was not immediately returned Tuesday.