A Border Patrol agent was shot at early Sunday morning while sitting in his marked patrol car just north of the U.S.-Mexico border, authorities said.

The gunfire occurred about 2:15 a.m. a mile and a half west of the San Ysidro Port of Entry, according to William Rogers, supervisory Border Patrol agent with the San Diego Sector. At least two bullets struck the driver’s side of the vehicle, but the agent was not injured and immediately drove to a safer location.