The Pakistani military said in April 2017 that Ehsanullah Ehsan had voluntarily turned himself in.
Video footage of the chaotic scene showed a massive police response, including SWAT teams and snipers positioned on nearby roofs.
The masked man can be seen lying on the ground with blood around him.
A Twitch spokesperson confirmed the link to the video has been taken down.
A local Jewish leader says the gunman tried and failed to storm the house of worship, which was crowded on the holiest day in the Jewish calendar.
This is the first reported incident of the police's live ammunition hitting a protester since the pro-democracy rallies started.
It is understood the man was shot while sleeping in his campervan on the country's North Island this morning.
This is a developing news story.
The Los Angeles Police Department confirmed the arrest Tuesday in a tweet.
"People have been looking at me longer than usual, and I wonder: are they looking at me because they feel sorry for me? Or are they looking at me because they agree with what that man did?"
In 2015 I started reporting from Reclaim Australia rallies. That movement has now reached a tragic culmination in New Zealand.
It's still unclear what the gunman's motives were.