Attacker drove car into crowd of people near parliament then stabbed police officer before being shot dead.