A Phoenix man who thought his wife was having an affair killed her, two of their young daughters and her alleged secret lover, police said on Friday.

Austin Smith, 30, was arrested and charged on suspicion of four counts of first-degree murder, two counts of attempted first-degree murder and three counts of aggravated assault.

Officers made a grim discovery when they visited Smith's family home on Thursday night, where they found his wife, Dasia Patterson, 29, and their 5-year-old daughter, Nasha Smith, dead from gunshot wounds.

Their 7-year-old daughter, Mayan Smith, died from apparent blunt-force trauma, but the couple's 3-year-old daughter was found uninjured under a bed at the family's home.

‘It is my understanding that for whatever reason he elected not to shoot her,’ Maricopa County Police Sgt. Tommy Thompson said.

Austin Smith, 30, was arrested and charged on suspicion of four counts of first-degree murder, after police say he killed his wife, a family friend he thought she was having an affair with and two of his three children

A stone-faced Smith made his first appearance in court yesterday, following his Thursday arrest

Austin Smith Perp Walk IN CUSTODY: Austin Smith, who has admitted to killing his wife, two of his daughters, and the man he believed his wife was having an affair with, is now in jail. STORY: http://bit.ly/2KBwuBg Posted by azfamily 3TV CBS 5 on Friday, 12 April 2019

The bodies of his family members were discovered after Smith's apprehension on Thursday evening, where officers responding to a 911 call of a shooting at a separate residence spotted Smith fleeing the scene in his car.

Inside the home, officers found the body of 46-year-old Ron Freeman, as well as another man and a woman who had been shot and wounded at the residence, police revealed.

Authorities say the suspect killed Freeman because he believed the man was having a romantic affair with his wife.

According to a police affidavit, the victim, described as a family friend, told Smith ‘he was crazy’ before he fatally shot him.

Witnesses claim Smith then reloaded his gun and ‘shot his victim several more times’ as he lay lifeless on the ground.

He then is said to have left the room and returned with a rifle. As friends and family of the victim tried to attend to Freeman, Smith told police he saw them a ‘co-conspirators’ with his wife and shot at them.

The 30-year-old was escorted into the court-room by a police officer on Friday

He bowed his head as he approached reporters gathered by the back entrance

The home where a body was found murdered is shown Friday, April 12, 2019. Smith said 'God told him' to carry-out the killings

Two bullet holes mark an entrance to the home. Police believe Smith brutally murdered his family first, before driving to the home of Freeman and carrying out another cold-blooded killing

Police believe Smith brutally murdered his family first, before driving to the home of Freeman and carrying out another cold-blooded killing.

The suspect told detectives during an interview that he believed ‘in God's eyes it was all right for him to deal with someone in this manner who had been involved in adultery or an extramarital affair,’ Thompson said.

Smith also reportedly told police he killed his seven-year-old daughter because she was crying and she shouldn’t be ‘weeping for the wicked’.

He said his ‘other two daughters reminded him of his wife whom he considered wicked in the eyes of God.’

The court document released later in the evening described Smith punching the eldest daughter, throwing her to the ceiling and onto the floor, then striking the child's head several times with a baseball bat.

‘Muslims don't move like that either, so that's an excuse," said Patterson's cousin, who did not want to be identified, to Fox 18. ‘Muslims don't move like that. They're kids.’

It's not yet clear why Smith decided to spare the life of his youngest daughter.

Smith also reportedly told police he killed his seven-year-old daughter because she was crying and she shouldn’t be ‘weeping for the wicked’

Neighbors say Smith and his family seemed just like any other, with no history of domestic violence

Patterson's cousin said he doesn't believe Dasia would cheat: ‘She's not like that,’ he said. ‘Not like that at all.’

Thompson described the scene at the apartment complex as chaotic, with firefighters treating victims while authorities did not initially know the shooter's whereabouts.

Officers with a warrant searched the car Smith was driving and found a 9mm handgun, a .45 caliber handgun and a .223 caliber rifle they believe were used in the shootings, according to the probable cause statement.

Neighbors, who wished to remain anonymous, told AZ.com that the family seemed just like any other.

‘Never any domestic violence, no cops coming all the time, nothing like that. It was just like a regular family.’

‘It's stuck in my head. They didn't deserve what happened to them.’

Smith’s Bail has been set at $2 million, according to court records. A Maricopa County Superior Court sent Smith's case to the local public defender's office. But no specific attorney had been assigned to him by Friday evening.