NEW BRUNSWICK — A New Brunswick man was shot to death in his home early this morning, according to Middlesex County Prosecutor Bruce Kaplan.

Alvin Williams, 29, of 47 Welton Street, was pronounced dead at Robert Wood Johnson University Hospital in New Brunswick at 1:06 a.m., about half an hour after he was shot, Kaplan said in a prepared statement.

Kaplan said it appears Williams was the intended target of an attempted robbery and that the incident was not a random act.

He said the results of an autopsy were not immediately available.

Detective Mark Pappas of the New Brunswick Police Department and county Investigator Adrian Villegas are investigating the shooting.