A man police say shot an Avondale officer in the leg and then shot himself after a six-hour standoff was arrested immediately after he was released from the hospital and booked into jail.