The authorities charged a man on Monday in connection with nearly a dozen shootings in and around a Southern California state park that left a father dead as he camped with his two young daughters and terrorized two affluent communities for almost two years.

The suspect, Anthony Rauda, 42, was charged with murder in the June 2018 killing of Tristan Beaudette, 35, a scientist shot while he was inside a tent with his children at Malibu Creek State Park in the Santa Monica Mountains outside Los Angeles. His children were not hurt in the attack.

Mr. Rauda, a felon who was on parole at the time of the attacks, was also charged with 10 counts of attempted murder in the shootings beginning in November 2016 in and around the park, which abuts the upscale communities of Calabasas and Malibu.

He was arrested in October after sheriff’s deputies saw him on a ridge dressed in black with a rifle sticking out of his backpack, according to The Associated Press. They were searching the area for an armed burglar who stole food from nearby homes and businesses.