A police officer has described the moment he “grabbed hold” of Daniel Khalife on a canal towpath before the former soldier “congratulated him” on catching him, a court has heard.