A 24-year-old Honduran national and a member of the Enfermos Criminales Salvatrucha MS-13 gang in Chelsea was sentenced Wednesday in U.S. District Court in Boston to 27 years in federal prison for his part in the shooting death of a Chelsea woman in 2014.

Hector Ramires admitted he and an accomplice were shooting at a group of rival gang members in Chelsea the evening of Oct. 18, 2014, when one of his shots missed the rivals and struck an innocent bystander, the mother of three small children who was looking out the window of her home during the gunfire. She died from her wounds.

Ramires also admitted trying to kill a rival gang member in Chelsea and an armed robbery.

Prosecutors pursued Ramires under racketeering laws, commonly called RICO.

His accomplice, Galicia Barillas, was sentenced to 22 years in prison during a hearing in March.