An NYPD officer from the Hudson Valley unexpectedly passed away.

Shane Sullivan, 27, of Middletown died early Saturday morning after crashing into a tree in the Bronx. It's believed the off-duty NYPD officer suffered a medical episode while driving, before crashing into a tree.

The crash happened just after Sullivan finished his shift with the NYPD's 43rd Precinct. Just past midnight, while driving on Sedgwick Avenue, Sullivan fell unconscious, possibly from a heart attack, authorities and sources told the New York Daily News.

Sullivan's Chevrolet then veered off the road and hit a tree. He was rushed to a Bronx hospital where he died.

Sullivan was born in Westchester County on Dec. 7, 1991. He graduated from Pine Bush High School and Orange County Community College before joining the NYPD.

Sullivan began his career with the NYPD in October 2015. He most recently served as a Traffic Safety Office, police say.

"Our hearts are truly heavy today as we mourn the loss of Police Officer Shane Sullivan," the NYPD 43 Precinct wrote on Facebook. "'Sully' was a young, kind, and humble Officer who will be missed by all who knew him."

A medical examiner is still determining the official cause of death. Sullivan was buried on Thursday.

More From WZAD-WCZX The Wolf