Investigators say two Gilbert police officers shot and killed a man who showed them a gun after finding him slumped over inside a car on Wednesday. It happened on Guadalupe Road near Lindsay Road. No officers were hurt.