Police tasered and shot a suspected jihadist teenager who shouted Allahu Akbar at them after allegedly stabbing three people in a Madrid street attack and then holing up in his flat.