A wanted criminal in Uttar Pradesh fired at arresting officers during an operation prompting retaliatory fire that wounded him in the leg before his detention.