(CNN) A man accused of walking into a Walmart in Missouri equipped with body armor, a handgun and a rifle less than a week after a gunman killed 22 people in a Texas Walmart said it was a "social experiment" and not intended to cause panic, police say.

"I wanted to know if that Walmart honored the Second Amendment," Dmitriy Andreychenko told investigators, according to a probable cause statement filed by Springfield police.

Andreychenko, 20, was arrested Thursday after panic ensued when he walked into the store that afternoon with his rifle slung across his chest, pushing a shopping cart and recording himself with a cell phone, police say.

Patrons fled the store, police were called, and an off-duty firefighter detained Andreychenko until officers arrived to take him into custody, police said.

He told investigators he intended to buy grocery bags, and didn't intend for any negative reaction, police said. And he claimed the recording was in case anyone stopped him and asked him to leave, police said.

Read More