Terrence Williams, a star basketball player at Rainier Beach High School who played for the Boston Celtics last season, is being held for investigation of second-degree assault. He was arrested Sunday after an argument with the mother of his 10-year-old son.

Terrence Williams, the former Rainier Beach High School star who has played the past four seasons in the NBA, wore shackles and a red jail jumpsuit Monday as he stood before a judge at the Norm Maleng Regional Justice Center.

After reading the certificate of probable cause outlining the police allegations against Williams, King County Superior Court Judge Charles DeLaurenti II found there was enough evidence to hold Williams on investigation of second-degree assault.

Bail was set at $25,000 and he was released from jail Monday evening.

Williams was arrested Sunday after the mother of his 10-year-old son told Kent police he had wielded a gun threateningly when she tried to talk to him at an apartment complex, according to prosecutors.

Unlimited Digital Access. $1 for 4 weeks.

In the probable-cause document, prosecutors allege “The mother came outside with her current boyfriend, and wanted to talk to Terrence about some disparaging remarks that Terrence had made in the past about her other children. Terrence refused to get out of the vehicle so the mother started banging on his hood, insisting that they talk.”

“While seated in the vehicle Terrence pulled out a handgun, stuck it out the driver’s side window and aimed it at the mother,” prosecutors allege.

Deputy Prosecuting Attorney Lakeysha Washington said that further police investigation revealed that Williams’ son tried to intervene by getting between his mother and Williams.

“He pulled the gun out in public with children present,” Washington said.

In addition to his son, the victim’s four other children, ages 6 months through 7 years, were present, she said.

She said Williams, 25, poses a threat to public safety and asked for $50,000 bail.

Defense attorney Aaron Kiviat asked that Williams be freed on personal recognizance. He said Williams had no previous criminal convictions and no warrants. He has longstanding ties to the community and owns a home in Maple Valley, Kiviat said.

In addition, Kiviat said the alleged victim was, by her admission, the initial aggressor in the incident, banging on the hood of Williams’ car when he refused to talk to her.

He said Williams’ version of Sunday’s events is far different from the victim’s and said he expected the case to change as witnesses were interviewed.

According to police, Williams was at the Park Place Apartments in Kent to drop off his son after a scheduled visit around 2 p.m. Sunday when the boy’s mother and her boyfriend approached him.

He told police that his child’s mother started kicking the front of his car after he refused to speak with her and he claimed that he pulled out the gun when he saw another person approaching the passenger side of his car and “felt threatened,” court documents say.

He said he pulled out the gun, and stepped out of the car holding it at his side, but denied pointing it at anyone, police said.

Williams averaged 4.6 points in 24 games with the Boston Celtics last season.

Seattle Times news researcher Miyoko Wolf contributed

to this report.