The constables were chasing six suspected robbers when they were shot. The suspects have not been tracked down yet.
One officer died immediately; the other died in hospital in Agra.
Dinesh Pratap Singh and Giriraj Kishore Gujjar, the killed policemen, were both in their early 30s.
In recent weeks, a series of horrific crimes - many of them against women - have left the Uttar Pradesh government defenseless against allegations of incompetence and a total breakdown of law and order.
Last week, a woman said she was gang-raped at a police station in Uttar Pradesh's Hamirpur district. Over the weekend, another woman said she had been gang-raped in Badaun; the suspects include a police officer's son who has still not been arrested.
The BJP's leaders in Uttar Pradesh have expressed their grave concern over a series of attacks on local leaders from their party. Three BJP representatives have been killed in the last few days.
Get Breaking news, live coverage, and Latest News from India and around the world on NDTV.com. Catch all the Live TV action on NDTV 24x7 and NDTV India. Like us on Facebook or follow us on Twitter and Instagram for latest news and live news updates.