3 suspects in a robbery H, A and O. Who is the Thief?

There are 3 suspects in a robbery H, A and O:
"I didn't," said H.
"O did," said A.
"A is lying," said O.
The inspector knew that one was telling the truth and the other two were lying.
Who is the thief?