A man set fire to an Islamic centre and mosque in Dublin, shouting Islamophobic and anti-immigrant slogans.