I'd like to wait for a better spot to raise the a loose aggressive player. Loose players tend to chase after cards. So a call should be expected for any pair or big draw.
I still like the raise rather than a call. A raise could have won you the pot right there if the player had missed completely. A call would have tipped off that you were on a draw.
In the end you got paid off so you made a good play.