There were shots fired in the area, the guy could have been a key witness. I'm pretty sure that is probable cause to stop a person and a pretty good explanation as to why the officer stopped to speak to the man.