Sheriff: Man shot and killed by Greeley police pulled handgun