Local distortion induced metal-to-insulator phase transition in PrRu4P12.