Prime Minister Junichiro Koizumi observed the 60th anniversary of Japan 's defeat in World War II on Monday by apologizing for the country 's past militarism in Asia and pledging to uphold its postwar pacifism .