A Brookline man will serve 20 to 40 years in prison after pleading guilty Monday in Allegheny County Common Pleas Court to killing his former wife’s new boyfriend.

David Edick, 28, entered his plea to one count of third-degree murder and one count of burglary. Police said he killed Ryan Beal, 27, of Swissvale.

Mr. Beal’s body was found Aug. 31, 2013, in the Duquesne Avenue apartment building where he lived with his girlfriend. He had been shot four times.

According to the prosecution, investigators interviewed Edick later that day; however, charges weren’t filed until Sept. 8, 2013, when he confessed to a woman he knew, and she went to the police.

Advertise with us

Edick told that woman, “That thing they accused me of doing, I did. I ruined his life, now I ruined my own. I’m going to leave the country and go to Costa Rica.”

Edick fled to Mexico and was arrested in September 2013 by U.S. Border Patrol agents who were alerted to a heat sensor detecting movement near the Gateway International Bridge at the border between Texas and Mexico.

Police said Edick was carrying the Nagant 7.62-caliber revolver that was used to kill Mr. Beal.

Edick and Mr. Beal knew each other because they both were part of the local steampunk community, which combines an interest in steam technology and science fiction.

During his hearing, Edick told Judge Kevin G. Sasinoski that he had asked that no one from his family attend the hearing. He also said his mother thought it wouldn’t be right to attend when Mr. Beal’s mother could not be there with her son.