An off-duty FBI agent was shot in Brooklyn, and now authorities are trying to figure out what exactly happened.

Police say the shooting occurred on East 92st street in Canarsie.

The alleged shooter fled in a red BMW.

The agent suffered a gunshot wound to his shoulder.

Police say the agent was taken to the hospital and is expected to survive the shooting.