As pilgrims flock to Ugandan shrine, authorities narrowly prevent massive terror attack