A 19-year-old Rochester man is accused of beating a neighbor with a hammer and shooting him after an argument.