An expletive along with a hammer-and-sickle symbol and a pink swastika was scrawled outside the gallery, which sits above an architecture firm in a neighborhood dotted with Turkish restaurants and Afro-Caribbean markets.