(CNN) After finding a gun in a sofa at IKEA, a child fired the loaded weapon in the store, prompting an investigation of the incident.

Earlier that day, a customer at the Fishers, Indiana, store sat down on the couch to test it out, police said.

Sgt. Tom Weger with the Fishers Police Department told CNN that "a customer accidentally dropped the gun into a couch and when he got up, he didn't realize that the gun had fallen off of his person."

"A child found the gun in the couch after he resumed shopping and subsequently fired the gun," Weger said.

The boy, who is 6 years old, was not hurt, nor was anyone else, Weger said.

Read More