A police officer in California used a bag of crisps from a colleague's lunch box to capture an escaped pig which was roaming the streets.