A Boston police detective was unhurt Sunday evening after a man approached his car and fired multiple times at his unmarked vehicle.

The detective was in plain clothes and in an unmarked car when the gunman approached and started shooting, reports CBS Boston. The officer did not fire back, but his car was hit twice.

He was checked out at an area hospital but had no injuries.

"Our officers go out every day to try to protect the community. We are faced with some serious, serious issues and problems such as gun violence, that are out there, but we are here to protect the community any way we can. But this is an example of true professionalism and calmness under pressure," says Police Commissioner Michael Cox.

Police have arrested a suspect in connection with the shooting, but no further details have been released about the alleged gunman.