Man fires gun in pants in Walmart checkout line