Man with ammo detained at Sikh temple