Police have arrested a man after he allegedly threated to “shoot up” a Lowell elementary school.

Robert McDaniel, 36, allegedly posted threats against Pawtucketville Memorial Elementary School and its students on a school website, WHDH reported.

RELATED: Robocall threats reported at Boston schools

In the post, which police used to eventually locate McDaniel, the suspect allegedly claimed that he had a rifle and would “shoot up the school,” Fox 25 stated.

“He's been drinking and doing drugs for 25 years. Should be in a program – no court can make him take medicine,” McDaniel’s father was quoted by Fox 25 talking about his son. “It's against the law to make him take medicine unless they arrest him.”

McDaniel was arrested for making a threat involving a firearm against a school, WHDH added. Police indicated that he did not have any weapons.

RELATED: Teenager arrested for threatening a school shooting on social media: Police

Because of the threat, children were evacuated to another school, according to Fox 25.

Following a mental evaluation, McDaniel is scheduled to be arraigned on Friday afternoon.