The attacker was shot after refusing to lay down his weapon and approaching officers with the knife. He was arrested and taken to hospital. CNN Portugal said the alleged attacker was an Afghan national. Police did not immediately confirm his nationality.