A major police investigation is under way after a new mosque at Edmondson Park was threatened online.