A naked North Carolina man was arrested on Tuesday after a 15-hour standoff with cops that included an exchange of gunfire, tear gas volleys and a communications robot.

The incident began when a neighbor called the cops on Jimmy Albert Burleson, 41, who allegedly sat "naked on his [Greensboro] porch with a gun while calling out to God," Police Chief Ken Miller told WGHP-TV.

When the responding officer showed up at about 5 a.m., he got quite a surprise when Burleson allegedly started shooting an automatic weapon at him -- possibly an AK-47, the station reported.

"I heard shots," Neighbor Danielle Hatfield told the News & Record. 'Then it went bam, bam, bam. Then I heard about three or four more. I just kind of looked at [my husband], and said 'Are they gunshots?'"

The officer took cover and returned fire using a shotgun and a handgun until Burleson retreated back inside and barricaded himself in, the paper reported. Neither the officer or Burleson were injured in the melee, but it was only the beginning.

Dozens of cops descended on the home, shooting tear gas inside and even deploying a robot with audio and video capabilities that would help officers talk to man down. The news outlets reported that the robot broke down -- but an officer using a second robot was able to coax Burleson out of the house long enough to subdue him at about 8 p.m.

Burleson was arrested on charges of attempted first-degree murder and assault with a deadly weapon on an officer. Cops will stay with him at the hospital until he finishes a thorough mental health evaluation.