A police officer said he thought Sheku Bayoh had killed his colleague while they were trying to restrain him, an inquiry has heard.
Pc Ashley Tomlinson, 30, was one of the officers first on the scene after Mr Bayoh was reported carrying a knife in Hayfield Road, Kirkcaldy, in May 2015.
He said he feared for his life and thought "this is it, I'm not going home" when faced with attempting to restrain the 31-year-old.