29-year-old charged with homicide in killing of homeless man