A man pleaded guilty to killing Baltimore tech entrepreneur Pava LaPere last September in an apparently random attack that shocked the city.