A Baton Rouge man surrendered to authorities Thursday in what police have described as the vigilante killing Sunday of his neighbor.

Yovanni Anibal Ramos-Salazar, 31, was accompanied by his attorney when he surrendered to Baton Rouge police at about 6 p.m., said Cpl. Don A. Coppola Jr., a police spokesman.

Ramos-Salazar is accused of second-degree murder in the shooting death of 28-year-old Joel Guevara, Coppola said.

Police have said Ramos-Salazar shot and killed Guevara outside the north Baton Rouge apartment complex where both men lived, after Ramos-Salazar learned Guevara had been accused of raping one of Ramos-Salazar’s relatives. The apartment building is on Quida Mae Drive, just behind the old Earl K. Long Medical Center.

Several days before the shooting, Guevara was accused of raping a woman inside a hotel room in January.

Ramos-Salazar also was booked into Parish Prison on a count of illegal use of a weapon. He did not make a statement to police, Coppola said.