Police said the suspect was a homeless man from Ghaziabad who had come to the city from Farrukkhabad in Uttar Pradesh a year-and-a-half ago