Police officer poses as homeless man in traffic enforcement sting