The New Port Richey attorney whose client attempted to kill the mother of a teenage prodigy he was obsessed with cannot be held liable, a Montana judge said.

David Gilmore could not have predicted the actions of his client, Thomas Kyros, the judge ruled, according to the Associated Press.

Kyros, an 81-year-old New Port Richey retiree, became obsessed with Promethea Pythaitha, a Greek-American math genius who graduated from Montana State University at 14. Kyros had Gilmore draft a will in which Kyros gave two-thirds of his estate to Pythaitha, with the provision she couldn't collect while her mother, Georgia Smith, is living.

In November, 2010, Kyros drove 2,430 miles to Bozeman, Mont., to be near Pythaitha, who was then 19. Three months later, he allegedly drove his car into the fence at her residence. When Pythaitha and Smith came outside, Kyros shot Smith five times at point-blank range. Smith survived. Kyros was killed by police.

Last fall, Gilmore was named as a defendant in a federal lawsuit filed in Montana by the two women.