BOSTON (AP) — A member of a fishing boat pleaded guilty Wednesday to killing another crew member and attacking others with a knife and hammer while at sea in 2018, federal prosecutors said.

Franklin Freddy Meave Vazquez, 27, pleaded guilty to one count of second degree murder, one count of attempted murder and one count of assault with a dangerous weapon. Judgment is scheduled for June 28.

The attack happened Sept. 23, 2018, on the Virginia-based fishing vessel The Captain Billy Haver as it sailed about 90 miles off the coast of Nantucket with seven crew members on board, including Vazquez and the three victims. .

Inside the ship’s spalling house, Vazquez used a hammer to strike his first victim in the head, knocking him unconscious, investigators said.

He then came out onto the deck and stabbed a second victim multiple times with a long fillet knife.

A third victim who climbed up from the ice wedge was hit in the head by Vazquez with a hammer and fell back onto the ladder, bleeding from the head.

Vazquez then wrestled with the ship’s captain before climbing to the top of the rigging mast.

The captain placed a call on the distress channel and the German cruise ship Mein Schiff 6 responded, taking two injured fishermen on board, prosecutors said. The stabbed crew member was pronounced dead by the ship’s doctor.

Vazquez remained atop the mast until the Coast Guard arrived that evening and took him into custody.

The victim stabbed by Vazquez has died. The other two victims survived.

Vazquez is a Mexican citizen and was living in the United States illegally, investigators said.

Vazquez faces up to life in prison for the second-degree murder charge. The attempted murder charge carries a sentence of up to 20 years in prison, while the charge of assault with a dangerous weapon carries a sentence of up to 10 years.

Vazquez will be subject to deportation proceedings after serving any sentence imposed.