A man charged with killing his girlfriend's father pleaded guilty to second-degree murder, abruptly ending his trial for first-degree murder.

Twenty-two-year-old Brandon Church was on trial this week for first-degree murder in the 2011 beating death of Kerry Deyo in their Platte City home. Prosecutors say Deyo was killed when he intervened in an argument between his daughter and Church.

The St. Joseph News-Press reports that while entering his plea Thursday, Church told the judge he killed Deyo after he "snapped" while the men were fighting. He says the death was an accident.

Church will be sentenced May 16.