GLEN BURNIE, Md. (WJZ) — Anne Arundel County police have made an arrest in the baseball bat beating that happened during a robbery Wednesday night.

William Lee Haynes, 35, of Glen Burnie,  is charged with attempted first- and second-degree murder, first- and second-degree assault, reckless endangerment, disorderly conduct, robbery, armed robbery, theft under $1,000 and theft under $100.

READ MORE: 'The School Shouldn't Be Open Right Now': Parents React To COVID-19 Outbreak At Cherry Hill Elementary Middle School

Police say the 40-year-old victim was was walking on Virginia Avenue around 8:49 p.m. Wednesday and passed a group of people when he was suddenly attacked by a suspect who hit him in the head with a baseball bat.

READ MORE: Almost 9,000 Vaccinated Marylanders Get Additional Shots Since Approval of Pfizer Booster

The victim was robbed of cell phones and a wallet.

He was taken to Shock Trauma with serious injuries.

MORE NEWS: 'We're The Cure To This Situation': 9 Killed, 13 Wounded In Baltimore Over The Past Week

The investigation is ongoing.