The mosque, which shared videos condemning Samuel Paty before his killing, must shut for six months.