The Orange County Sheriff's Office said that after Loyd allegedly shot Clayton, he was spotted by a deputy fleeing in a vehicle at a Walmart.
Loyd allegedly pulled into a nearby apartment complex and fired at a deputy, striking his unmarked vehicle twice. The deputy was unharmed, the sheriff's office said.
Loyd then carjacked a vehicle and fled again, later abandoning the vehicle.
Another deputy sheriff, who was part of the ongoing efforts to locate Loyd, was also killed after his motorcycle was struck by a driver, authorities said.
Deputy First Class Norman Lewis, 35, had been in law enforcement for 11 years.
Florida Gov. Rick Scott on Tuesday thanked law enforcement officers from agencies around the state in bringing Loyd to justice.
"It is sickening that anyone would commit senseless violence against our brave first responders," he said in a statement. "Ann and I continue to pray for the families of the fallen heroes and hope today’s news provides some relief.”