Official: Man in Afghan security uniform kills 3 U.S. troops