Gordon Brown has paid tribute to the bravery of a police officer as he unveiled a memorial to mark the spot where he was stabbed to death.