It would be impossible to know for sure if they feel "pain" in the same way we do. Cetainly they react to stimulii that would cause pain in humans or mammals. I hope that insects don't feel pain, though, because that means that crickets and fruit flies feel the praying mantis eat them alive, which would make keeping praying mantises very immoral.