A Clinton man convicted of robbing and fatally shooting a Bowie laundromat owner inside his home last year has been sentenced to life in prison, prosecutors said Friday.

John Haston, 47, was convicted last month of first-degree murder in the July 2011 slaying of David W. Williams, 44, authorities said. Prosecutors said he and another man, Craig Brooks, set out to rob Williams, and Brooks posed as  a Pepco employee to survey Williams’s home a day before the killing.

Brooks also pleaded guilty to his role in the incident and was sentenced to 50 years in prison, prosecutors said. He had pleaded guilty earlier this year to committing a similar robbery in Anne Arundel County.

Prosecutors said together, the two men stole $1,200 in cash, a laptop, camera, jewelry and other electronic equipment from Williams, who owned the No Rulez Laundry business on Martin Luther King Jr. Highway in Glenarden.