In my opinion you hit the nail on the right spot. Fredo said: "I didn't no it was gonna be a hit Mike." Thus...that's why he killed them. He heard the shots and immediately knew what the heck was going on. To save his own ass there was one option, kill the hitmen.