He was with "hero imam" Mohammed Mahmoud, who helped detain a man suspected of attacking worshippers.