BRIDGEPORT — A former high school soccer coach accused of exposing himself in separate incidents to a Fairfield teen and a Norwalk woman was granted a special psychiatric probation program on Friday.

David Sharpe, 30, of Warren Street in Fairfield, who coached girls’ soccer at Westport’s Staples High School until his arrest late last year, was granted the supervised diversionary program in the Fairfield case following a hearing before Superior Court Judge Frank Iannotti.

Under the program, Sharpe did not plead guilty to the charges pending against him of public indecency and second-degree breach of peace but was placed on two years’ probation. If he commits no other crimes during that probation, the charges against him will be dismissed.

Senior Assistant State’s Attorney Tatiana Messina told the judge that the alleged Fairfield victim objected to Sharpe getting the program but was leaving it to the judge’s discretion. The prosecutor said she wanted to ensure that Sharpe would have no further contact with the teen.

Iannotti told Sharpe he would not be getting the program if the crime had involved a youth he was coaching.

Sharpe had previously undergone a psychological evaluation and the judge ordered him to continue in a treatment program supervised by probation.

The Norwalk case is pending in court there.

On Oct. 23, 2018, police said, a 16-year-old girl was walking in the area of Old Post Road and South Benson Road in Fairfield when, she said, an older black Ford Mustang pulled over and stopped just ahead of her. Police said as the girl walked past the car, she looked in and saw a man, later identified as Sharpe, masturbating. The man looked at the girl and continued touching himself, police said.

The girl walked home and told her mother what she saw, and the mother called police.

An officer later got the Mustang’s license plate number, which came back to a car owned by Sharpe.

On Sept. 26, 2018, a 20-year-old woman was walking in the area of Sasqua Road and Winfield Street in Norwalk when a man in a black Mustang pulled up to her, police said. The driver was masturbating as he stared at the woman, police said.

Following his arrest, police said Sharpe told them, “I’m heavier than I should be right now. I do drive with my jeans unbuttoned a lot because my pants don’t fit me. It’s entirely possible I was driving in those areas with my pants unbuttoned. Could I have been exposed? It’s a big possible. Sure, all of it’s possible.”

Sharpe later resigned his coaching position.