The authorities were looking into the possibility of terrorism in the shooting, in which several people were reported wounded.