Police in Irving, Texas, said a man ordered a second pizza during a four-hour standoff that resulted from his first attempt to order a pizza.

Daniel Gurney called a nearby pizzeria Tuesday night. The manager recognized Gurney as a former customer who once used a bad credit card, so he called police to report him for fraud.

When police ran a check on the address given by the pizzeria manager, they learned that Gurney had four probation violation warrants for aggravated assault. Officers responded to his location in the 2400 block of McClure Street at about 12:30 a.m. Wednesday.

Police said that an officer arrived to arrest Gurney, who did not cooperate. He tried to escape through the back door, but he was met by police. He then retreated into the house, refusing to come out.

Given Gurney's violent history, police called in a SWAT unit. Authorities said they used beanbag rounds, tear gas and flash-bang grenades before Gurney surrendered peacefully.

During the standoff, a different pizza delivery man arrived at the house with a pizza. Police told the man to leave.