Officials warn that such attacks could alienate the Muslim community at a time when police need its cooperation .