Brexit would be bad for NATO, hints alliance chief