Rupert Murdoch was attacked by a man with a pie during a parliamentary hearing on phone hacking at Porcullis House in London.