JAKARTA, Indonesia—The biggest street protest in years shook this sprawling capital on Friday, in a stark display of the more conservative, militant strain of Islam taking hold in the world’s largest Muslim country.

Police estimated that 100,000 people turned out for a rally called by hard-line Muslim groups against the capital’s Christian governor, whom they accuse of having committed blasphemy.

The...