What type of insect is this in my pantry?
They look like flour beetles.
They've likely gotten into your rice, grain or flour and all that will need to be removed.  Try keeping pantry grains in plastic or glass airtight containers.
Be careful with pesticides if you go that route, since it will be near your food