LAKELAND (CBSMiami/CNN) – A judge has denied bond for former Marine Bryan Riley who is accused of killing four people, including a three-month-old baby, in two homes early Sunday morning just outside Lakeland.

He then barricaded himself in one of the homes and shot at law enforcement officers before eventually surrendering, Polk County Sheriff Grady Judd said.

READ MORE: Spacex's 1st Tourists Homeward Bound After 3 Days In Orbit

Once in custody, he tried to take a gun from a Lakeland police officer and had to be subdued, Judd said.

The quadruple homicide, which Judd described as an “active shooter rampage,” had no clear motive, and authorities said they did not believe he knew any of the victims.

“We just know we had a madman with a lot of guns that shot and killed innocent people,” Judd said Sunday.

Riley, 33, now faces four counts of first-degree murder as well as charges of attempted murder, arson, armed burglary and shooting into a building, according to a criminal affidavit.

Riley admitted to deputies that he shot several people and said that voices and “God” told him to do it, according to the criminal affidavit. He shot the infant “because I’m a sick guy,” he allegedly said. “I want to confess to all of it and be sent to jail.”

Here is what we know about the shooting:

The victims
Four people were killed in the shooting and a child was wounded by gunfire, authorities said.

Inside a home on the property, a 40-year-old man named Justice Gleason, a 3-month-old baby and the baby’s 33-year-old mother were found dead. The baby’s 62-year-old grandmother was also found dead in a second house on the property, Judd said. She had been hiding in her closet, according to an affidavit.

Each of the victims has multiple gunshot wounds, the affidavit said. The family’s pet dog, Diogi, was also shot and killed.

An 11-year-old girl had been shot multiple times and was airlifted to Tampa General Hospital for surgery. She is expected to recover. Another child who had earlier been missing was located alive and well, Judd said.

The shooting
The incident began Saturday evening when a woman called authorities about a suspicious man, believed to be Riley, making odd statements at their home.

The caller said the man had parked outside their house and claimed that God had sent him there because a girl named “Amber” was going to die by suicide, according to a criminal affidavit. The caller did not have a daughter named Amber, but the man refused to leave, the sheriff said. The caller, joined by Gleason, told the man to leave and that they would call the police, spurring the man to leave the scene.

A deputy responded within six minutes and did not find the man or the car at the residence, Judd said.

About nine hours later, at about 4:30 a.m. Sunday, a deputy two miles away heard two volleys of automatic gunfire. Deputies responded and calls reporting an active shooting began coming in as well, the sheriff said.

On arrival, deputies discovered a truck on fire and heard popping noises from the vehicle. A series of glow sticks were laid out on the yard forming a path, Judd said. There, they saw a man wearing camo who quickly fled inside the home. Then they heard disturbing sounds.

READ MORE: Report: Miami-Dade School District Misused $6M For Driver’s Ed Programs

“At that moment in time, we heard another volley and a woman scream and a baby whimper,” Judd said.

Confrontation with police
A lieutenant tried to enter the front of the house, but it was barricaded. The lieutenant then went to the back of the house and entered and came upon Riley, now outfitted in a bulletproof vest, camo, knee protection, and head protection, according to the sheriff.

Riley reportedly shot at the lieutenant, who returned fire and retreated out of the house, Judd said.

He then started shooting at other deputies, who also returned fire, Judd said. There were “at least dozens if not hundreds” of rounds fired between the suspect and deputies.

“It was a tough situation, and it entailed at least two shootouts in close quarters with the suspect,” the sheriff said.

There was a period of silence, and then Riley came out with his hands up, Judd said. Riley, who had been shot once, was taken into custody peacefully.

“If he’d given us the opportunity, we’d have shot him up a lot, but he didn’t because he was a coward,” Judd said Sunday. “You see, it’s easy to shoot innocent children and babies and people in the middle of the night when you’ve got the gun and they don’t.”

Photos posted by the Polk County Sheriff showed the extent of the damage to the home Sunday morning. A glass door appears completely shattered, two windows and a wall are riddled with bullet holes and a burnt truck sits outside the home.

While in custody, Riley admitted to deputies that he shot several people and “stated voices and ‘God’ told him to do it,” according to the criminal affidavit. He shot the infant “because I’m a sick guy,” he allegedly said. “I want to confess to all of it and be sent to jail.”

The suspect
Riley lives in Brandon, about 20 miles from where the shooting took place. Judd said there did not appear to be any connection between the suspect and the victims.

Riley served four years in the Marines and was honorably discharged, and then he did another three years in the reserve, Judd said. He was deployed to Iraq in 2008 and Afghanistan in 2009-2010 as a designated sharpshooter, the sheriff said.

The suspect was employed by ESS Global Corp as a bodyguard and to provide security, Judd said. He has a concealed weapon’s license and no criminal history aside from a “small charge” as a teenager, the sheriff said.

“We’re not dealing with a traditional criminal here. What we’re dealing with is someone who obviously had mental health issues at least this last week, had PTSD,” Judd said.

In an interview with deputies, the suspect described himself as “a survivalist” and confessed to being on methamphetamine, Judd said.

The suspect’s girlfriend told authorities that he had been diagnosed with Post-Traumatic Stress Disorder (PTSD) and had been acting erratically in the past week.

MORE NEWS: Weekend Forecast: Summer Storms Soak South Florida

(©2021 CBS Broadcasting Inc. All Rights Reserved. Cable News Network, Inc., a Time Warner Company, contributed to this report.)

CBSMiami.com Team