Footage shows a man with a knife smashing the glass doors of a police station, before he was shot dead by armed police.