Russell Smith attacked the officer before threatening others and smearing his own faeces over his cell wall