Man shoots self after firing on police