An IIT graduate attacked two policemen with a sharp weapon outside the Gorakhnath temple in Uttar Pradesh last evening and tried to enter the temple while shouting religious slogans, before he was overpowered by a crowd and arrested. The incident will be treated as an act of terror, says the UP police.