A pigeon was pecking at a man's foot and making a cackle.