Masoud Khamenei was seen wiping tears with keffiyeh — the scarf that is a symbol in Iran of militant revolutionary ideals — as an imam recited funeral prayers.