A recent widower and personal trainer with three young children was shot dead by a masked gunman in front of his young daughter in Brazil – just months after his wife died in a freak accident.

Giovanny Diniz Carvalho, 36, tried desperately to escape from the masked gunman who targeted him while he was leaving his home in Petrolina, Brazil, on Monday, disturbing security footage showed.

Carvalho – who was shirtless and wearing sweatpants with no shoes – flailed and kicked in the empty street as the mask-clad gunman in an orange jacket and sneakers fired multiple shots at close range.

Giovanny Diniz Carvalho was a personal trainer and a single dad. Instagram / @giovannydinizpersonal

The personal trainer only stopped struggling after the attacker appeared to fire at least one bullet into the back of his head while he was lying on the pavement.

A woman was seen running from a house out to Carvalho’s body. She appeared to be checking for his pulse when the footage cuts off.

Witnesses told Brazilian broadcaster GloboNews that the brutal execution happened in front of his eldest daughter. The 6-year-old was reportedly inside the home with her paternal grandmother and saw the murder unfold. Carvalho’s two younger children — a 2-year-old girl and a 1-year-old boy — were asleep, the outlet said.

A military police officer, 35, was arrested in connection with the incident on Tuesday, CNN Brasil reported.

The suspect shot Carvalho multiple times at close range. T4 News Hub

Carvalho tried desperately to escape the gunman, who targeted him as he was leaving his house. T4 News Hub

The officer has not been named publicly and a motive for the brutal slaying is under investigation, local reports said.

Carvalho’s sudden death came less than a year after that of his wife, personal trainer Aila Pimenta, 32.

Pimenta died from an electric shock at the family’s home on Feb. 22.

The gunman eventually appeared to fire at least one shot into the back of Carvalho’s head. T4 News Hub

Carvalho died from his injuries. T4 News Hub

She was removing clothes from a wire clothesline that had been attached to a faulty air conditioning unit when she received the fatal shock.

Over the last several months, Carvalho had been balancing his career with being a single dad to the couple’s three children, ages 6, 2, and 1, GloboNews reported.

Giovanny Diniz Carvalho was widowed after losing his wife, Alia (left), in February. Instagram / @giovannydinizpersonal

In August, he was featured in a Father’s Day special by TV Grande Rio.

The investigation into his death will be carried out by the Civil Police, CNN Brasil said.