Why did Iran put a red flag on the mosque, what does it mean?

Israel killed Hamas chief Ismail Haniyeh in Iran’s capital Tehran. After this, Iran hoisted a red flag at Jamkaran Mosque. But why? Source (PTI) (NDTV) (HINDUSTANTIMES)