A man suspected of beheading a four-year-old girl in in an apparent random knife attack on the street is attacked by an angry mob while being brought into a police station.