BROOKLYN - Two transit officers were shot tonight and the gunman is allegedly dead after gunfire erupted at a Dyker Heights subway station, according to sources.

The officers were shot at around 7:30 p.m. at the N train subway stop at 62nd Street and Fort Hamilton Parkway. One officer was shot in the leg and has been taken to Lutheran Medical Center.

The other was only grazed by a bullet and is recovering.