A gunman apparently acting alone killed five Jordanian intelligence agents on Monday in a daylight "terrorist attack" on their office in a Palestinian refugee camp north of the capital.