Military investigators say the gunman had no ties to extremist groups but aren’t ruling out any possibilities