Read as much as you want on BostonGlobe.com, anywhere and anytime, for just 99¢.

Slain junior mourned at Hofstra

Andrea Rebello was accidentally shot by a police officer Friday, officials said.

Andrea Rebello was accidentally shot by a police officer Friday, officials said.

NEW YORK — Hofstra University students wore white ribbons at their graduation ceremony Sunday to honor a 21-year-old student who was accidentally killed by a police officer two days earlier.

Andrea Rebello was killed after a masked man walked through the unlocked door of her off-campus home. An officer aiming at the would-be robber opened fire, hitting the Hofstra junior as well as the ex-convict, who was holding her in a headlock.

Continue reading below

On Saturday evening, flags on the Hempstead campus were at half-staff and students held a vigil in front of a photo of the young woman. Surrounded by candles and flowers, they sang ‘‘Ave Maria.’’

Rebello’s funeral is scheduled for Wednesday in Sleepy Hollow, in Westchester County, north of New York City.

The officer who fired the shots is an eight-year veteran of the New York Police Department and has been with Nassau County police for 12 years. He is now out on sick leave.

Criminal justice analysts said the officer faced perhaps the most harrowing decision of a law enforcement career: choosing the split-second moment when the risk is so high that you must act to save a life.

‘‘The big question is, how do you know, when someone’s pointing a gun at you, whether you should keep talking to them, or shoot?’’ said Michele Galietta, a professor of psychology at the John Jay College of Criminal Justice who helps train police officers.

The questions surrounding the student’s death are just beginning, along with an internal investigation by the Nassau County Police Department.

Loading comments...

You have reached the limit of 10 free articles in a month

Stay informed with unlimited access to Boston’s trusted news source.

  • High-quality journalism from the region’s largest newsroom
  • Convenient access across all of your devices
  • Today’s Headlines daily newsletter
  • Subscriber-only access to exclusive offers, events, contests, eBooks, and more
  • Less than 25¢ a week