NBC said it has settled a lawsuit blaming the network for the suicide of a Texas prosecutor who was targeted in an undercover sting against alleged pedophiles as part of the "Dateline: To Catch a Predator" show.

"The matter has been amicably resolved to the satisfaction of both parties," NBC said in a statement Tuesday evening.

In February, a federal judge ruled that a $105 million lawsuit could go to trial after being brought by a woman claiming the sex sting by the show drove her brother to kill himself.

In a scathing ruling, U.S. District Judge Denny Chin said a jury might conclude the network "crossed the line from responsible journalism to irresponsible and reckless intrusion into law enforcement."

Louis William Conradt Jr., a suburban Dallas prosecutor, fatally shot himself after he was accused of engaging in a sexually explicit online chat with an adult posing as a 13-year-old boy, according to a lawsuit filed by his sister.

In the lawsuit, Patricia Conradt said NBC "steamrolled" police to arrest her brother after telling police he failed to show up at a sting operation 35 miles away.

The Associated Press contributed to this report.