Two men were arrested for flying a drone too close to a Maryland prison.

The people, whose names were not released, were caught on property near the Western Correctional Institution and the North Branch Correctional Institution near Cumberland, Maryland, The Baltimore Sun reported.

>> Read more trending stories  

The drone was carrying contraband including drugs and porn, Mashable reported.

Police also found a gun inside the men's car, WRC reported.

Police are also trying to find out if there had been a successful drop of contraband via drone at the prison.

An inmate was found with illegal items in his cell Sunday night, police said.

The authorities have realized that drones are smuggling prohibited items into jails and are calling it "very troubling," WRC reported.