BROOKLYN - An NYPD officer died while on duty in Brooklyn Tuesday, officials say.

Juan Feliciano, 44, had a heart attack at Floyd Bennett Field around 10:30 a.m., according to police. Police say he was dropping off a bike for repair at the time.

Feliciano, a 21-year veteran of the force, died later at Coney Island Hospital.

Officials say he had a pre-existing health condition that may have played a role in the heart attack.

The official Twitter accounts of several NYPD precincts tweeted condolences to Feliciano's family.

Feliciano leaves behind two children.