Prosecutors said the 29-year-old man repeatedly punched the victim in the head and put him head first into a garbage can.