A man who randomly fired a gun and killed a man as he sat in a car outside a Springfield McDonald's restaurant has pleaded guilty to reduced charges.

The Springfield News-Leader reports that Richard Gaines initially was charged with second-degree murder in the death of 28-year-old Zachary Zumwalt.

He instead pleaded guilty Friday to unlawful use of a weapon and armed criminal action in the November 2017 shooting. Zumwalt had been sitting in his car using the wireless internet provided by the McDonald's when he was struck by the random gunfire.

Gaines apologized, saying, “I truly never meant for none of this to happen at all."