Police: Man fired at officers before they shot him