An Ulster County man is accused of trying to murder a cop outside of a Hudson Valley school on a school day.

Enter your number to get our free mobile app

An Ulster County Grand Jury issued an indictment of 52-year-old Clayton Shafer of Esopus for the attempted murder of a police officer, a class A-1 felony, and several other charges.

On Feb. 9, the Ulster County Sheriff’s Office received emergency calls from acquaintances to check on Shafer’s welfare in his RV located on his business premises a short distance from Robert Graves school on Mountain View Avenue in Esopus.

For all the news that the Hudson Valley is sharing make sure to follow Hudson Valley Post on Facebook, download the Hudson Valley Post Mobile App and sign up for the Hudson Valley Post Newsletter.

When the deputy sheriff turned into the driveway, Shafer confronted him with a loaded AR-15, pointed the weapon directly at the deputy and attempted to shoot, police say.

A brief standoff ensued, during which around from Shafer's rifle was discharged in a different direction from the deputy, officials say.

“As a result of the extraordinary courage, skill, and evasive training of the responding deputy, no lives were lost and passing motorists were protected," Ulster County District Attorney David Clegg stated.

The road was closed down to traffic while law enforcement dealt with the 52-year-old until he was eventually taken into custody without any injuries to anyone.

Detectives later executed a search warrant at the incident location and allegedly found eighteen rifles and shotguns, including the AR-15 alleged to have been used in the incident. At this time, these firearms appear to have been legally possessed, police say

Keep Scrolling:

38 'Most Wanted' in New York

Authorities across New York State, including the FBI, have identified these people as its "Most Wanted Fugitives." Officials ask for help in finding them but warn they should be considered "armed and dangerous."

Highest-Rated Airbnb in New York Found in Hudson Valley

You won't have to leave the Hudson Valley if you want to enjoy New York's highest-rated Airbnb. 

LOOK: Here Are the 25 Best Places to Live in New York State

Stacker compiled a list of the best places to live in New York using data from Niche. Niche ranks places to live based on a variety of factors including cost of living, schools, health care, recreation, and weather. Cities, suburbs, and towns were included. Listings and images are from realtor.com.

On the list, there's a robust mix of offerings from great schools and nightlife to high walkability and public parks. Some areas have enjoyed rapid growth thanks to new businesses moving to the area, while others offer glimpses into area history with well-preserved architecture and museums. Keep reading to see if your hometown made the list.

Hidden Treasure Worth Thousands Found in New York Home

40 Children Have Gone Missing From the Hudson Valley

Gun Violence Emergency Declared in New York, Lawmakers Respond

Gov. Cuomo declared the first-in-the-nation gun violence disaster emergency in New York.

World-Famous Celebrities Seen At Many Hudson Valley Businesses

Photos: Many Rescued From Submerged Vehicles in Hudson Valley

Some drivers in the Hudson Valley had to be saved from the roofs of their cars. 

KEEP LOOKING: See what 50 company logos looked like then and now

Gypsy Moth 'Accidentally' Released Causing 'Nightmares' in New York

After 10 to 15 years a gypsy moth that was once "accidentally" released has returned and is causing "nightmares" in New York. 

Cops Dismantle 'Local Criminal Enterprise' at Hudson Valley Deli

Six were arrested for allegedly selling drugs and more at a Hudson Valley deli.

Historic Hudson Valley Building Revived as New Business

A historic Hudson Valley building is getting a second life as a new business that will show off the beauty of the region. 

Then And Now: How Fast Food Restaurants in The Hudson Valley Have Changed

While many of your favorite Hudson Valley fast-food restaurants have remained in the same spot for decades, their buildings are almost unrecognizable from what they used to look like.

Fast Food Change

Mustang Pinned Under Tractor-Trailer Near I-84 in Hudson Valley

A Mustang crashed into a tractor-trailer near I-84 in the Hudson Valley. 

Photos: Truck Drives Into Building in Dutchess County

A truck drove into a building in Dutchess County, causing significant damage. 

The 20 Most Surprising Things Found at LEGOLAND New York in Goshen

LEGOLAND New York in Goshen is officially opening this summer. Right now special previews are going on so that guests can get a sneak peek at what's in store when the park opens its gates. While we won't spoil all of the surprises, here are just some of the incredible little details that await you during your first visit to this incredible theme park.

Legoland