Los Angeles police have arrested a suspect in the fatal shootings last month of three homeless men, whose deaths shocked the city.