Police officer charged with illegally making, selling guns