A Greek man has been accused of spying on an Iranian journalist in the United Kingdom by using a covert camera hidden inside a sock, prosecutors say.