In what police are describing as a crime of opportunity, a wanted man with a criminal history dating nearly 15 years entered a front door that had been left open at a New York home near Hofstra University. A short time later, the intruder, Dalton Smith, and a 21-year-old college junior, Andrea Rebello, were both dead. The two were killed early Friday by a Nassau County police officer who fired eight shots at the masked man, hitting him seven times but also accidentally hitting Rebello once in the head, Nassau County homicide squad Lt. John Azzata said Saturday. Smith was holding Rebello in a headlock and pointing a gun at her head before he turned his gun at the officer, Azzata said, prompting the shooting. The shooting came just days before the school's commencement ceremonies, which are scheduled for Sunday. The shooting, which took place just steps from campus, has cast a pall over the university community as it geared up for commencement. Earlier Saturday, police announced that Smith, 30, had been wanted on a parole violation related to a first-degree robbery conviction. A warrant was issued for Smith on April 25 for absconding from parole, police said. Smith had what police described as "an extensive criminal history," which included arrests for robbery in the first degree in 1999, promoting prison contraband in the second degree in 2000, robbery in the first degree in 2003, assault in the second degree in 2003 and robbery in the second degree in 2003. Rebello was in the two-story home in Uniondale, N.Y., with her twin sister Jessica, a third woman and a man when Smith, wearing a ski mask, walked into the house through an open front door, Azzata said. The door was left open after someone had moved a car that was blocking a driveway, Azzata said. When Smith entered, he demanded valuables and was told they were upstairs, Azzata said.