Agent-SafetyBench: Evaluating the Safety of LLM Agents